Crontab ranges

Latest response

I have created a crontab that is supposed to only run on certain days of the month, but it is not working. Instead, it runs every Sunday.

Here is the crontab:

m h dom mon dow command

0 0 15-21 * 0 nonprod.sh
0 5 15-21 * 0 nonprod-reboot.sh
0 0 22-28 * 0 prod.sh
0 0 22-28 * 0 prod.sh

Is the syntax I am using for ranges not valid?

Responses