Cron expression generator · every Monday

Cron job every Monday

The crontab line for a job every Monday is 0 0 * * 1. It runs once a week, 52 times a year. Edit it below to see the next runs in your time zone.

—

Next runs

    Field by field

    How 0 0 * * 1 reads

    The five fields are minute, hour, day of month, month and day of week. A star means every value.

    FieldValueMeaning
    Minute0minute 00
    Hour0hour 00
    Day of month*every day of month
    Month*every month
    Day of week1Monday (1)

    For example, from Wednesday 6 January 2027 at 10:07 the next runs are: Mon 11 Jan 2027, 00:00; Mon 18 Jan 2027, 00:00; Mon 25 Jan 2027, 00:00; Mon 1 Feb 2027, 00:00; Mon 8 Feb 2027, 00:00.

    When to use it

    What a job every Monday is for

    A weekly job at the start of the week suits weekly reports, full backups, licence or certificate reviews, and cleaning up anything older than seven days.

    Mistakes

    Common mistakes

    • Day of week counts from Sunday: 0 and 7 are Sunday, 1 is Monday. «0 0 * * 0» runs on Sunday.
    • If you set both the day of month and the day of week, cron runs when either matches. «0 0 1 * 1» runs on the 1st of every month and on every Monday, not only on Mondays that fall on the 1st.
    systemd

    The same schedule as a systemd timer

    On systems with systemd, a timer can replace the crontab line: OnCalendar=Mon *-*-* 00:00:00. Check it with systemd-analyze calendar "Mon *-*-* 00:00:00", which prints the next run.

    Monitoring

    Know when it didn’t run

    Cron doesn’t tell you when a job stops running. Add a heartbeat monitor with a period of 1 week and end the line with a call to its URL, for example 0 0 * * 1 /path/job.sh && curl -fsS -m 10 <ping URL>. If a ping is late by more than the grace time you set, you get an alert, and a call to the URL with /fail reports a failure at once.

    What is the cron expression for a job every Monday?

    0 0 * * 1. It runs once a week, 52 times a year, on the server’s clock.

    How do I run a job every Monday with systemd instead?

    Create a timer with OnCalendar=Mon *-*-* 00:00:00 next to a service that runs the job, then enable it with systemctl enable --now name.timer. Persistent=true also runs a run that was missed while the machine was off.