Unix: crontab every 15 minutes
February 17, 2011 14:06:22 Last update: February 17, 2011 14:06:22
This is the crontab to run a cron job every 15 minutes:
or,
In general, the format is:
Valid values are:
Reference: crontab(5) - Linux man page
*/15 * * * * /path/to/executable >/redirect/output/path/run.log 2>&1
or,
0,15,30,45 * * * * /path/to/executable >/redirect/output/path/run.log 2>&1
In general, the format is:
minute hour day_of_month month day_of_week command
Valid values are:
| Field | Value |
|---|---|
| minute | 0-59 |
| hour | 0-23 |
| day of month | 1-31 |
| month | 1-12 |
| day of week | 0-6 (Sunday = 0) |
Reference: crontab(5) - Linux man page