Difference between revisions of "Run a cron job every 10 minutes"
From dbawiki
(Created page with "===Layout of cron=== <pre> # +---------------- minute (0 - 59) # | +------------- hour (0 - 23) # | | +---------- day of month (1 - 31) # | | | +------- month (1 - 12) #...") |
(→Layout of crontab) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | ===Layout of | + | ===Layout of crontab=== |
<pre> | <pre> | ||
# +---------------- minute (0 - 59) | # +---------------- minute (0 - 59) | ||
| Line 10: | Line 10: | ||
</pre> | </pre> | ||
| − | To get | + | To get cron to run a task every 10 minutes, some Unix's allow this: |
*/10 * * * * /path/to/command | */10 * * * * /path/to/command | ||
Latest revision as of 17:13, 14 January 2013
Layout of crontab[edit]
# +---------------- 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 cron to run a task every 10 minutes, some Unix's allow this:
*/10 * * * * /path/to/command