I need to run a cron job every 10 minutes, only between 4:40 and 0:15. I've managed to schedule the cron job to run from 4 to 0 o'clock, but can't figure out how to schedule it further. This is what I came out with: */10 4-23,0 * * * script
Cron – Run cron job every 10 minutes, from 4:40 to 0:15
cron
Related Topic
- Cron – Run task every 90 minutes with cron
- Cron – Not running a cron job when the prev run was not finished
- Cron – Create a cron job to run redis every 30 minutes if it is not running
- Cron – Scheduling a job to run every 23 minutes
- Cron is retrying a job every 15 minutes
- How to Schedule Cron Job Every 15 Minutes from 06:05 to 22:05
Best Answer
Sometimes you just have to break out the ugly, and duplicate entries to get selection logic like that. It should work and be pretty apparent with what it's doing without uber cron-fu knowledge.
Oh, and a helpful site for generating these: http://www.openjs.com/scripts/jslibrary/demos/crontab.php