Reference fcron

Location Codes

Run the command

fcrontab -e
# note some systems use crontab etc
That will open the cron jobs file
0  *  *  *  *      rm -f /var/spool/cron/lastrun/cron.hourly
^  ^  ^  ^  ^ 
|  |  |  |   
|  |  |       ` Day of the week
|  |       ` -- Month 
|       ` ----- Day of the month
     ` -------- Hour
   ` ----------- Minute

Allowed Values

field: allowed values:
minute: 0-59
hour: 0-23
day of month: 1-31
month: 1-12 (or names, see below)
day of week: 0-7 (0 and 7 are both Sunday, or names)

Example

5 10 31 * 7 echo ''

echo will only be executed days which are a Sunday AND a 31th, at 10:05.

Leave a Reply

Your email address will not be published. Required fields are marked *