Ahh.. who gave the code-monkey a wrench?
*/5 0-1,2-23 * * * /bin/hello.sh
*/5 0-1,2-23 * * * /bin/hello.sh 0,5,10,55 1-2 * * * /bin/hello.sh
If you put examples only you should at least make sure that you're right. From what I read on the crontab manpage, the dash includes the whole range:The dash (-) operator specifies a range of values, for example: "1-6", which is equivalent to "1,2,3,4,5,6"So as for the hours in the first example, 0-1,2-23, it will run at 0,1,2,3,4,5,etc... no timegap there ;)
If you put examples only you should at least make sure that you're right. From what I read on the crontab manpage, the dash includes the whole range:
ReplyDeleteThe dash (-) operator specifies a range of values, for example: "1-6", which is equivalent to "1,2,3,4,5,6"
So as for the hours in the first example, 0-1,2-23, it will run at 0,1,2,3,4,5,etc... no timegap there ;)