Create a CRON expression
When you are scheduling an NCM job, you can use a CRON expression to create an advanced schedule. In Unix computing, the CRON daemon performs all scheduled jobs. Each job is defined in a command line syntax that looks like this:
{Minutes: 0-59} [Hours: 0-23] {Day of Month: 1-31}{Month: 1-12}{Day of Week: 0-6 (Sunday to Saturday)} {Command to Execute}
NCM adopts this model in the resource of the advanced schedule type. The five input fields correspond to the five elements of CRON job syntax. Additionally, NCM supports these CRON operators:
Symbol | Name | Description |
---|---|---|
*
|
Asterisk | The wildcard for the value all |
-
|
Hyphen | Sets a range: #-# |
,
|
Comma | Specifies terms out of series |
Example
If you want a job to run twice a week every month at midnight on Sunday and Thursday morning, the values for the fields would be:
0 0 * * 0, 4 {Command}
This tells NCM to run the job at 0 minutes and 0 hours, on all valid days of month, in all valid months, on Sunday and Thursday.