Run a Cron Job Every Weekday (Monday to Friday)
To run a job only on weekdays, set the day-of-week field to 1-5. For example, 0 8 * * 1-5 runs at 08:00 Monday through Friday and skips Saturday and Sunday.
The expression
0 8 * * 1-5 runs at 08:00 on every weekday. The last field 1-5 is Monday (1) through Friday (5); 0 and 6 (Sunday, Saturday) are excluded.
Day-of-week numbering
Sunday is 0 (and also 7 in most crons), Monday is 1, up to Saturday 6. So weekdays are the range 1-5. You can also write names: MON-FRI.
Every hour on weekdays
Combine a step in the hour field: 0 * * * 1-5 runs hourly Monday-Friday. Add a business-hours window with 0 9-17 * * 1-5.
FAQ
What is the cron expression to run every weekday?
0 8 * * 1-5 runs at 08:00 Monday through Friday. The 1-5 in the day-of-week field covers Monday to Friday and skips the weekend.
How does cron number the days of the week?
Sunday is 0 (or 7), Monday 1, through Saturday 6. Weekdays are the range 1-5, and you can also use MON-FRI.
How do I run hourly only on weekdays?
Use 0 * * * 1-5 for every hour Monday-Friday, or 0 9-17 * * 1-5 to limit it to business hours.