Cron Every 15 Minutes — and How to Offset the Start
To run a job every fifteen minutes, the line is:
*/15 * * * *
Add your command after it. That schedule fires at :00, :15, :30 and :45 of every hour, every day.
Why the line looks like that
The five fields are minute, hour, day of month, month, day of week. */15 means: start at the first value of this field, then repeat every fifteen. In the minute field the first value is 0, so the runs land on the four quarter marks.
If you want to know exactly what a line does before you trust it, paste it into the parser. It reads the expression back in plain English.
Start at :05 instead of :00
Plenty of jobs do not need the top of the quarter. A report that reads data which other jobs write at :00 will do better at :05, when the writers are done:
5-59/15 * * * *
That means: from minute 5 to minute 59, every fifteen minutes — so :05, :20, :35, :50.
The same idea works for any offset: 2-59/15, 7-59/15. Pick a minute that sits after whatever your job depends on.
The trap: a job that takes longer than fifteen
Cron does not wait — the same overlap trap as the every-five-minutes line. If the previous run is still busy at :15, a second copy starts anyway. Two copies of a sync script writing the same files is how quiet corruption happens.
Two fixes, both honest:
- Make the job refuse to overlap. A lock file, or a flag that exits when another run is active.
- Slow the schedule down. If the job usually takes twenty minutes, every fifteen was never the right answer.
Fifteen minutes is a good default for
- Mailbox and queue checks.
- Small syncs between two systems.
- Status refreshes that are cheap to run.
It is a poor fit for heavy exports, rate-limited APIs, and anything that writes shared state without a lock.
Check it, then forget it
The exact preset page is every 15 minutes — copy the line from there. If something does not run, the mistakes checklist walks through the usual reasons in the order that saves time.