On Wed, 25 Feb 2004 18:02:57 +0100, Andreas Janssen wrote: > Hello > > Andy Fish (<[EMAIL PROTECTED]>) wrote: > >> I have just figured out that there are 4 separate (types of) crontabs >> in debian >> >> /etc/crontab >> /etc/cron.d/... >> /etc/cron.daily, monthly, weekly >> /var/spool/crontabs/... >> >> but I'm none the wiser about why there are so many ways to do such a >> simple thing. Can anyone enlighten me as to which I should use when? > > If you want a script to be run daily, weekly or monthly, place in in > /etc/cron.daily, /etc/cron.weekly, or /etc/cron.monthly. Cron will take > care of the rest for you - you won't have to write a crontab line > telling cron when to run it. If daily, weekly and monthly is not > sufficient for you, create a file in /etc/cron.d with a crontab line > telling cron when to run it. Only use this for system jobs. If you want > to run jobs as a normal user, use > > crontab -e > > This will edit your user crontab in /var/spool/cron/crontabs. >
Also, if you regularly shut down your system for periods, like a home PC user would do, then you probably need anacron. -- ....................paul It is important to realize that any lock can be picked with a big enough hammer. -- Sun System & Network Admin manual -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]