luxuze.github.io

github pages

View on GitHub

CRON

wikipedia

Syntax

┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of the month (1 - 31)
│ │ │ ┌───────────── month (1 - 12)
│ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday;
│ │ │ │ │                                   7 is also Sunday on some systems)
│ │ │ │ │
│ │ │ │ │
* * * * * <command to execute>

Expression

Field Required Allowed values Allowed special characters Remarks
Minutes Yes 0-59 * , -  
Hours Yes 0-23 * , -  
Day of month Yes 1-31 * , - ? L W ? L W only in some implementations
Month Yes 1-12 or JAN-DEC * , -  
Day of week Yes 0-6 or SUN-SAT * , - ? L # ? L # ? L # only in some implementations
Year No 1970-2099 * , - This field is not supported in standard/default implementations.

Examples

* * * * *
*/5 * * * *
* */2 * * *
0 2 * * *
0 17 * * sun