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