I have a sample perl script which i need to run using cron daily ,could any one let me know the exact syntax to use cron job.
Thanks in advance.
|
|
|
To edit/view your crontab, type the following commands:
Your cron job looks like as follows:
Where 1 = minutes (0-59), 2 = hours (0-23), 3 = day (0-31), 4 = month (1-12), 5 = day of week (0-7). For example, if I want to run something 5min after midnight, every day:
You can also specify multiple values, separated by commas or hyphens, such as:
which runs at 00:05, 00:10, 01:05, 01:10, 02:05 and 02:10 each day. |
|||||
|
|
best link newbie http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/ |
|||
|
|
Well, you should probably read |
|||
|
|
|
|
|||||||||
|
|
http://cronwtf.github.com/ is something I find useful when I inevitably forget the syntax. |
|||
|
|
If you just want it to run daily and don't really care when it runs, you can just drop a shell script into /etc/cron.daily (this will also run it as root). Otherwise, use crontab as suggested numerous times above. |
|||
|
|
If you want to have a click n easy graphical interface, you might want to try webmin http://www.webmin.com/ Otherwise "crontab -e" would do |
|||
|
All of the above answers should be good, just a quick addition is that back ticks do not work well in cronjob entries. If you have to do things like |
|||
|
|