---
title: "Cron first Monday of the month"
url: "https://cronmissed.com/cron/first-monday-of-the-month.md"
canonical_url: "https://cronmissed.com/cron/first-monday-of-the-month"
last_updated: "2026-10-22"
type: "reference"
summary: "0 9 1-7 * 1 does not mean the first Monday of the month in cron. Here is the crontab line that does, why, and how to monitor it."
related: ["https://cronmissed.com/cron.md", "https://cronmissed.com/cron/last-day-of-the-month.md", "https://cronmissed.com/cron/every-two-weeks.md", "https://cronmissed.com/cron/every-90-minutes.md", "https://cronmissed.com/tools/cron-explainer.md"]
---

# Cron first Monday of the month

> **For AI agents:** the complete index of CronMissed pages is [llms.txt](https://cronmissed.com/llms.txt). Every page is also served as markdown at its URL plus .md.

0 9 1-7 * 1 does not mean the first Monday of the month in cron. Here is the crontab line that does, why, and how to monitor it.

`0 9 1-7 * *`: At 09:00, on days 1 through 7 of the month.

## How do you run a job first monday of the month with cron?

The line runs on the first seven days of the month, and the test lets the job through only when today is a Monday (date +%u prints 1 for Monday). Exactly one of those seven days is a Monday.

```crontab
0 9 1-7 * * [ "$(date +\%u)" = 1 ] && /usr/local/bin/job.sh
```

## What does 0 9 1-7 * * mean?

| Field | Written | Means |
| --- | --- | --- |
| minute | `0` | 0 |
| hour | `9` | 9 |
| day of month | `1-7` | 1 through 7 |
| month | `*` | every month |
| day of week | `*` | every day of week |

## How often does it run?

On a day it runs, it runs once. It runs on 84 days of 2027, 84 runs in all. The gap between runs is not constant: it varies from 1 day to 25 days.

## When is this schedule useful?

Monthly meetings and reviews, first-Monday reports, and anything scheduled by a calendar rule rather than a date.

## What should you watch out for?

When both day fields are set, Unix cron runs on days that match either one, so 0 9 1-7 * 1 runs on the 1st to the 7th and on every Monday.

## What happens when the clocks change?

On Sunday 14 March 2027, clocks in America/New_York jump from 02:00 to 03:00. This schedule does not run that day, so the change does not touch it.

On Sunday 1 November 2026, clocks in America/New_York fall back from 02:00 to 01:00, so the hour from 01:00 happens twice. No run falls in the repeated hour, so the day runs as usual.

A server that keeps its clock on UTC never sees either change.

## How do you get an alert when it stops running?

Create a OnCalendar check with the schedule Mon *-*-01..07 09:00 and 5 minutes of grace, and ping it at the end of the job:

```crontab
0 9 1-7 * * [ "$(date +\%u)" = 1 ] && /usr/local/bin/job.sh && curl -fsS --max-time 10 --retry 5 --retry-connrefused -o /dev/null "https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10"
```

The [snippet builder](https://cronmissed.com/tools/snippet-builder.md) writes the same ping for systemd, GitHub Actions, Vercel, Kubernetes and backup scripts.

## More schedules one cron line cannot write schedules

- [Last day of the month](https://cronmissed.com/cron/last-day-of-the-month.md): `0 0 28-31 * *`
- [Every two weeks](https://cronmissed.com/cron/every-two-weeks.md): `0 9 * * 1`
- [Every 90 minutes](https://cronmissed.com/cron/every-90-minutes.md): `0 0-21/3 * * *`
- [Every 30 seconds](https://cronmissed.com/cron/every-30-seconds.md): `* * * * *`

## Related

- [Cron expression and crontab examples](https://cronmissed.com/cron.md)
- [Cron last day of the month: crontab workaround](https://cronmissed.com/cron/last-day-of-the-month.md)
- [Cron every two weeks: crontab workaround](https://cronmissed.com/cron/every-two-weeks.md)
- [Cron every 90 minutes: crontab workaround](https://cronmissed.com/cron/every-90-minutes.md)
- [Cron expression translator and evaluator](https://cronmissed.com/tools/cron-explainer.md)
