Running Cron Every X Minutes

Written by James McDonald

January 2, 2009

I keep forgetting the correct format of cron entries to have a command run every three minutes

To do it every three minutes you need to make the syntax */3 not simply 3 (which means on the 3rd minute of every hour)

# m h  dom mon dow   command
*/3 * * * * /home/user/bin/mycommand

This cron job now runs as I want…

# m h dom mon dow command
The above is the format eg.
m = minutes
h = hours
dom = day month
mon = month
dow = day of week
command = command

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Docker on Fedora 32

Docker on Fedora 32

Commands to run to get moby-engine running on Fedora 32 # as root or sudo'd dnf install grubby grubby...

PDF Poster

PDF Poster

Start with a wide long image. This is just a screen shot of my desktop. widescreen.png Convert it to postscript using...