Commands are executed by cron when the minute, hour, and month
fields match the current time, and at least one of the two day fields
(day of month, or day of week) match the current time. A field may be
an asterisk (*
), which will always match.
Field | Allowed values |
---|---|
minute | 0-59 |
hour | 0-23 |
day of month | 1-31 |
month | 1-12 or first three letters |
day of week | 0-7 or first three letters (0 or 7 is Sunday) |
30 2 * * tue /path/to/command
*/10 * * * * /path/to/command
30 */2 * * * /path/to/command
30 */2 * * 1-5 /path/to/command
5 12-18 * * * /path/to/command
5 12-18/2 * * * /path/to/command
0 0 1 * * /path/to/command
0 0 1 */3 * /path/to/command