Cron Expression
0 0 * * 1-5
Learn how to create a cron expression for 'cron every weekday'. Runs Monday through Friday at midnight, skipping weekends.
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | 0 | At hour 0 |
| Day of Month | * | Any day |
| Month | * | Any month |
| Day of Week | 1-5 | Monday to Friday (Weekdays) |
This cron expression represents: cron every weekday
0 0 * * 1-5
Runs at midnight Monday through Friday and skips Saturday and Sunday entirely. The 1-5 range in the day-of-week field covers Monday (1) to Friday (5).
Weekday-only schedules fit anything tied to business activity:
crontab -e
0 0 * * 1-5 /path/to/your/script.sh
If you set both the day-of-month and day-of-week fields to non-wildcards (e.g. 0 0 1 * 1-5), classic cron runs when either matches — the 1st of the month or any weekday — not both. Keep day-of-month as * for a pure weekday schedule.
0 9 * * 1-5
0 0 * * MON-FRI /path/to/script.sh
0 0 * * 0,6 /path/to/script.sh