Web Hosting Talk







View Full Version : Setting up a cron job


tymonhall
09-19-2001, 07:15 PM
Hi, I need someone to tell me step by step on how to setup a cron job.

Thanks

Chicken
09-20-2001, 02:20 AM
I haven't had a need to do this, but you might want to check any files in cron.daily already, for examples.

jaime
09-20-2001, 03:34 AM
It's very easy to set up cron jobs. Just place your shell or perl scripts in the corresponding directory:

/etc/cron.daily
/etc/cron.half-daily
/etc/cron.hourly
/etc/cron.quarter-hourly
...

If you want to set up a cron job not periodically, you have to edit or creat another file ( see crontab.master for an example)

Post your cron job you want to set up and maybe we can guide you.

tymonhall
09-21-2001, 02:58 PM
I know about those. I need to create a special cron

BlueBox
09-21-2001, 03:43 PM
write the cron job in pico or vi whichever you prefer save it (such as cronjob) and then type

crontab cronjob

cronjob done :)