Run a cron job every 10 minutes

From dbawiki
Revision as of 14:44, 4 January 2013 by Stuart (talk | contribs) (Created page with "===Layout of cron=== <pre> # +---------------- minute (0 - 59) # | +------------- hour (0 - 23) # | | +---------- day of month (1 - 31) # | | | +------- month (1 - 12) #...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Layout of cron

# +---------------- minute (0 - 59)
# |  +------------- hour (0 - 23)
# |  |  +---------- day of month (1 - 31)
# |  |  |  +------- month (1 - 12)
# |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)
# |  |  |  |  |
  *  *  *  *  *  /path/to/command

To get crontab to run a task every 10 minutes you could type as follow

*/10 * * * * /path/to/command