Cron Expression
0 1,3,5,7,9,11,13,15,17,19,21,23 * * *
Learn how to create a cron expression for 'cron every odd hour'. Runs every odd hour with our free cron generator tool.
Field | Value | Meaning |
---|---|---|
Minute | 0 | At minute 0 |
Hour | 1,3,5,7,9,11,13,15,17,19,21,23 | At hour 1,3,5,7,9,11,13,15,17,19,21,23 |
Day of Month | * | Any day |
Month | * | Any month |
Day of Week | * | Any day of the week |
This cron expression represents: cron every odd hour
0 1,3,5,7,9,11,13,15,17,19,21,23 * * *
Runs every odd hour
This cron schedule is commonly used for:
crontab -e
0 1,3,5,7,9,11,13,15,17,19,21,23 * * * /path/to/your/script.sh
0 1,3,5,7,9,11,13,15,17,19,21,23 * * * /path/to/script.sh >> /var/log/cron.log 2>&1
0 1,3,5,7,9,11,13,15,17,19,21,23 * * * /path/to/script.sh || mail -s "Cron job failed" admin@example.com