Cron job scheduling
by Francis[ Edit ] 2012-06-05 17:04:53
<h3>some helpful contrab commands</h3>crontab -e Edit your crontab file, or create one if it doesn't already exist.
crontab -l Display your crontab file.
crontab -r Remove your crontab file.
crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.)
<h3>crontab format with commented fields is as follows</h3> <pre># Minute Hour Day of Month Month Day of Week Command
# (0-59) (0-23) (1-31) (1-12 or Jan-Dec) (0-6 or Sun-Sat)
0 2 12 * 0,6 /usr/bin/find
</pre><h3>Example</h3> 0 5 10-15 * 1 /command
This example of running a cron job every month, on Mondays whose dates are between 10-15. This means the second Monday only of the month at 5 a.m.