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