*/5 in a crontab is cron every 5 minutes — and yes, that includes minute 0. The line is */5 * * * *. In the minute field, * means 0–59, so the step is 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, and 55. Twelve runs an hour. The top of the hour is on the list.
Build the five fields in the cron expression generator. The page does not install the job. Copy the expression into the crontab on the machine that will run it.
When minute 0 is skipped
*/5 * * * * # 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55
5-59/5 * * * * # 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55
5-59/5 starts the range at 5, so minute 0 is left out. Use that only when the top of the hour should stay quiet. For a plain every-five-minutes job, keep */5 * * * *.
*/10, */15, and */30 work the same way as */5 and still include minute 0.
Five fields only
Minute, hour, day of month, month, day of week. There is no seconds field. The daemon starts once when the matching minute begins. Do not paste a Quartz or EventBridge line into a five-field crontab. Call the program by its absolute path. Cron’s PATH is often short.
Top comments (0)