Cron expression for weekdays at 9 AM
Runs the job Monday through Friday at 9:00 AM and skips the weekend.
0 9 * * 1-5
At 09:00 AM, Monday through Friday
Field by field
- Minute · 0–59
0only at minute 0 - Hour · 0–23
9only at 09:00 - Day of month · 1–31
*every day of the month - Month · 1–12 or JAN–DEC
*every month - Day of week · 0–7 or SUN–SAT
1-5Monday through Friday
Next runs in your local time
Why this schedule, and when it bites
0 9 * * 1-5 is the canonical office-hours schedule: one run each weekday morning and silence on Saturday and Sunday. It looks trivial until the day-of-week field gets involved. Cron numbers days from Sunday: 0 and 7 both mean Sunday, 1 is Monday and 5 is Friday. Writing 0 9 * * 0-4, a common slip from zero-based habits, fires Sunday through Thursday and misses every Friday.
Sunday is 0, and also 7. Both values name Sunday. The range 1-5 is the safe way to say Monday through Friday. If a job mysteriously fails to run on Fridays, read the day field first.
The hour is the server's hour. 0 9 means 09:00 in the timezone the cron daemon follows, often UTC on a VPS while the team sits three hours ahead. Nine o'clock local becomes 6 AM UTC. Set the host timezone deliberately before trusting any morning schedule.
A missed 9 AM is missed for the day. Plain cron does not catch up. If the machine is asleep or the daemon is down at 09:00, the run simply never happens. For reminders and reports that must survive a restart, add a catch-up check on boot or use a scheduler with a persistent timer.
Where this cron expression shows up
- Standup reminders
- Sync jobs that only need to run on workdays
- Reports that mean nothing on a Saturday
Common variations
-
Weekdays every 15 minutes, 9 AM to 5 PM
*/15 9-17 * * 1-5 Every 15 minutes, between 09:00 AM and 05:59 PM, Monday through Friday
-
Mondays only, at 9 AM
0 9 * * 1 At 09:00 AM, only on Monday
Ranges, steps, and names are spelled out on the cheat sheet.
Questions this schedule raises
Do weekends count as days 6 and 7?
No. The day-of-week field runs 0 to 7: 0 and 7 are Sunday, 6 is Saturday. Weekdays are 1-5, which reads Monday through Friday. Some cron variants also accept names such as MON-FRI, but the numbers work everywhere.
How do I run at 9 AM on weekdays in a specific timezone?
Put the timezone on the host, or use CRON_TZ=Europe/Kyiv before the entry on daemons that support it, such as cronie. Plain Vixie cron ignores CRON_TZ. Then 0 9 * * 1-5 fires at 09:00 local time, and daylight saving shifts move it with the wall clock, which is what office hours want.