Cron job at 00:00, on day 1 of the month, only in January
Use 0 0 1 1 * to run a cron job at 00:00, on day 1 of the month, only in January. Check the expression and preview its next run times below.
This expression will run at 00:00, on day 1 of the month, only in January
Quick presets:
0 | 0 | 1 | 1 | * | |
|---|---|---|---|---|---|
| Day of the week (0 - 7) [Both 0 and 7 represent Sunday] | |||||
| Month (1 - 12) | |||||
| Day of the month (1 - 31) | |||||
| Hour (0 - 23) | |||||
| Minute (0 - 59) | |||||
- Asterisk (*) means "any" or "every".
an asterisk in the minute field means "every minute". - Comma (,) can be used to specify multiple values.
"1,15" in the minute field means "at 1 and 15 minutes past the hour". - Hyphen (-) defines a range.
"1-5" in the hour field means "every hour between 1am and 5am". - Slash (/) specifies increments.
"*/15" in the minute field would indicate "every 15 minutes".
Next scheduled times:
- Fri, Jan 1, 2027, 00:00:00in 117 days
- Sat, Jan 1, 2028, 00:00:00in 482 days
- Mon, Jan 1, 2029, 00:00:00in 848 days
Add this cron schedule to your crontab
Open your user crontab with crontab -e, then add the expression followed by the command you want to run:
0 0 1 1 * /path/to/your-commandUse absolute paths because cron runs with a smaller environment than your interactive shell. Confirm the entry was saved with crontab -l.
Make this cron job reliable
Cron starts commands but does not alert you when a command fails or a scheduled run never happens. Add a heartbeat after successful completion to detect silent failures.
0 0 1 1 * /path/to/your-command && curl -fsS --retry 3 https://oonchk.com/your-idRead the complete cron job guide for setup and troubleshooting, browse common cron examples, or monitor this cron job.