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