[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cron



On Mon, 12 Oct 1998, Aviram Jenik wrote:

> To continue the cron discussion thread, but from another angle:
> 
> under /etc there are a few directories called:
> cron.daily
> cron.hourly
> cron.monthly
> .
> .
> 
> and in it some scripts.
> 
> How does it work? How do I add/remove scripts? (simply remove the file?)

Guess what: cron.daily/* runs daily, cron.hourly runs hourly, etc. 

> When is it activated? (the "daily" for example? is it on midnight?)

See /etc/crontab. Mine is:
05 * * * * root run-parts /etc/cron.hourly
00 6 * * * root run-parts /etc/cron.daily
03 6 * * 0 root run-parts /etc/cron.weekly
00 7 1 * * root run-parts /etc/cron.monthly

So you may guess what happens.

-- 
frodo@sharat.co.il	\/  There shall be counsels taken
Stanislav Malyshev	/\  Stronger than Morgul-spells
phone +972-2-6245112	/\  		JRRT LotR.
http://sharat.co.il/frodo/	whois:!SM8333