* Richard Adams ([EMAIL PROTECTED]) wrote:
> On Sun, 16 Jan 2000, Rick Denis wrote about, cron job help:
> > hi all,
> >
> > i want to run the following command once a day every day :
> >
> > netdate ntp.nasa.gov
> >
> > but i am confused as to which cron* file i have to edit. could you
> > please help me. thanks.
>
> Someone else suggested editing /etc/crontab, now that is possably SuSe
> spesific, normaly speaking one would do;
>
> crontab -e
> You would need to be root to do netdate.
This is how you create per-user crontabs. However, for something like
netdate, you want to put it in the system crontab, /etc/crontab.
> Another thing which the other person forgot to say is restart crond after
> editing the file otherwise it will not work.
Wrong. cron checks its files every minute to see if they have changed,
and reloads them if so. You do not need to resart cron.
Tom.
--
.-------------------------------------------------------.
.^. | Tom Gilbert, England | [EMAIL PROTECTED] |
/V\ |----------------------| www.tomgilbert.freeserve.co.uk |
// \\ | Sites I recommend: `--------------------------------|
/( )\ | www.freshmeat.net www.enlightenment.org slashdot.org |
^^-^^ `-------------------------------------------------------'