Does */5 in crontab include minute 0?
*/5 * * * * is cron every 5 minutes, and yes — minute 0 is on the list. 5-59/5 skips 0 on purpose.
Does */5 in a crontab include minute 0? Yes. */5 in crontab is cron every 5 minutes, and the list is 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, and 55. Twelve runs an hour.
*/5 * * * *
5-59/5 * * * * is different. The range starts at 5, so minute 0 is skipped. Use it only when the top of the hour should stay quiet. */10, */15, and */30 still include 0 the same way */5 does.
Build, then install
Build the fields in the cron expression generator, then copy them onto the host. The generator does not install anything. Five fields, no seconds. Use an absolute path for the command.
Comments
Join the discussionNo comments yet. Be the first to comment.


