How can I create a cron job that runs from 19:00 to 5:00? This doesn't work:
* 19-05 * * ....
Should I use two jobs?
* 19-23 * * ....
* 1-5 * * ....
How can I create a cron job that runs from 19:00 to 5:00? This doesn't work:
* 19-05 * * ....
Should I use two jobs?
* 19-23 * * ....
* 1-5 * * ....
On some distributions you can:
* 19-23,0-5 * * *
Check here: https://unix.stackexchange.com/questions/67158/crontab-entry-with-hour-range-going-over-midnight
yes, you need to lines:
* 19-23 * * ....
* 0-05 * * ....
Yes, you will end up to split it up, like this:
*/10 22-23 * * * logger "brooks was here"
*/10 00-05 * * * logger "brooks was here after midnight"