[EMAIL PROTECTED] wrote on 02/08/2004 12:37:43 PM:

> what is the 'proper' way to add stuff to cron;
> 
> can I simply symlink ? copy ? a '/usr/local/bin/ascript' to 
/etc/cron.daily ?
> or is there more to it ?
> where do tell it what time I want it to run ? do I put a crontab entry 
as
> the first line in the script ?
> 
add 'stuff'?
Personally, I would create a script that executes it, that is, if it needs 
to be somewhere else, ie in the $PATH, else just move it there.
In that directory, you don't tell it what time to executes, it executes 
all files in /etc/cron.daily/ once a day.
cat /etc/crontab for details, mine states:
25 6    * * *   root    test -e /usr/sbin/anacron || run-parts --report 
/etc/cron.daily
at 6:25 am daily.

If you want to specify a time, probably best putting it in the users cron; 
for that type:
#crontab -e
man crontab(5) for details

Cheers,

Scott


> 
> -- 
> Voytek
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to