开发者

Cron - schedule job every 30 minutes, starts half past full hour

Can I schedul开发者_运维百科e job in cron format so that it runs every 30 minutes from 6:30 am to 11:30, every day? How?


I think you will need 2 lines to achieve what you need:

30 6-11 * * * /path/to/your/command
0 7-11 * * * /path/to/your/command


In addition to Alvin's answer I would suggest to insert this line into your crontab:

*/30 6-11 * * * /path/to/your/command
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜