Unix Cron Scheduling
1. Logfile
The log files for cron daemon can be found under any of the following file
/var/log/cron
/var/log/syslog
2. View/List Cronjobs
$ crontab -l
3. Schedule Cronjobs
a. Create the cronjob entries as mentioned in Step-4 in a textfile (cron_jobs.txt).
b. Run the following command
$ crontab cron_jobs.txt
4.Linux Crontab Format
MIN HOUR DOM MON DOW CMD
| Field | Description | Allowed Value |
|---|---|---|
| MIN | Minute field | 0 to 59 |
| HOUR | Hour field | 0 to 23 |
| DOM | Day of Month | 1-31 |
| MON | Month field | 1-12 |
| DOW | Day Of Week | 0-6 |
| CMD | Command | Any command to be executed. |
Reference:
http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/
No comments:
Post a Comment