PDA

View Full Version : cron question



fedorafan2
27th May 2006, 12:08 AM
How do I set up a daily cron job to run a shell script?

blue13130
27th May 2006, 12:36 AM
just make your script as you normally would and then give it executable file attributes and then put it into the folder /etc/cron.daily to have it run daily when cron executes all daily jobs.

gavinw6662
28th May 2006, 03:40 AM
just make your script as you normally would and then give it executable file attributes and then put it into the folder /etc/cron.daily to have it run daily when cron executes all daily jobs.


that's one way of doing it, or you can 'schedule it' by editing the /etc/crontab file, or if you are the 'user' you want to the cronjob as, then you can type 'crontab -e' to edit your own personal cronjobs.


Several ways to do it, A man cron/crontab or google cronjob should show you the basic syntax of a cron file.

fedorafan2
30th May 2006, 01:08 AM
Awsome
Thanks for the help,
fedorafan2