How to set a Cron job in Every one hour from 9:00 am to 6:00 pm ( Monday to Friday )

孤者浪人 提交于 2019-12-08 13:57:56

问题


How to set a Cron job in Every one hour from 9:00 am to 6:00 pm ( Monday to Friday)

I am using Hostgator cron job to send mail every one hour, Now I want it from Monday to Friday. below is the link to screen shot.

http://awesomescreenshot.com/0123cmfxe1

Please help me.


回答1:


This should work:

0 9-18 * * 1-5 /path_to_script

EDIT:

In the format of the boxes it would be

0
9-18
*
*
1-5


来源:https://stackoverflow.com/questions/25424102/how-to-set-a-cron-job-in-every-one-hour-from-900-am-to-600-pm-monday-to-frid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!