Column 1 minutes 1 to 59
Column 2 hours 1 to 23 (0 means midnight)
3rd Liege 1-31
4th column month 1-12
Column 5 Week 0~6 (0 means Sunday)
Column 6 Command to run
Here is the format of the crontab:
Commands to be run by time-sharing day, month and week
Here are some examples of crontab file entries:
30 21 * * * /usr/local/apache/bin/apachectl restart
The above example means restarting apache at 21:30 every night.
45 4 1,10,22 * * /usr/local/apache/bin/apachectl restart
The above example means to restart apache at 4:45 on the 1st, 10th and 22nd of every month.
10 1 * * 6,0 /usr/local/apache/bin/apachectl restart
The above example means to restart apache every Saturday and Sunday at 1:10.
0,30 18-23 * * * /usr/local/apache/bin/apachectl restart
The above example means to restart apache every 30 minutes between 18:00 and 23:00 every day.
0 23 * * 6 /usr/local/apache/bin/apachectl restart
The above example means to restart apache every Saturday at 11:00 pm.
* */1 * * * /usr/local/apache/bin/apachectl restart
restart apache every hour
* 23-7/1 * * * /usr/local/apache/bin/apachectl restart
Restart apache every hour between 11pm and 7am
0 11 4 * mon-wed /usr/local/apache/bin/apachectl restart
Restart apache on the 4th of every month and every Monday to Wednesday at 11:00
0 4 1 jan * /usr/local/apache/bin/apachectl restart
Restart apache at 4:00 on January 1st