Schedule and frequency
CRON uses five fields in this order: minute, hour, day of month, month, day of week. The schedule follows the current server time displayed by DirectAdmin.
| Expression | Meaning |
|---|---|
* | every value |
1,5,10 | the listed values |
1-5 | a range from 1 to 5 |
*/5 | every fifth value |
1-30/2 | every second value in the range |
Examples
| Frequency | Min | Hour | Day | Month | Weekday |
|---|---|---|---|---|---|
| every 5 minutes | */5 | * | * | * | * |
| hourly at minute 10 | 10 | * | * | * | * |
| daily at 02:30 | 30 | 2 | * | * | * |
| weekdays at 06:00 | 0 | 6 | * | * | 1-5 |
| first day monthly at 03:15 | 15 | 3 | 1 | * | * |
Avoid restricting both day of month and day of week unless you understand CRON semantics. On common systems, matching either of these fields can run the job.
CRON does not schedule in seconds. Contact support if an application requires a shorter interval or a continuously running process.