开发者

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

开发者 https://www.devze.com 2023-03-13 22:17 出处:网络
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:

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

精彩评论

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

关注公众号