On Wed, Mar 17, 1999 at 01:41:17PM +0100, Wybo Dekker wrote:
>
> Hi,
>
> I saw /etc/crontab that seems to do some useful things; and I created
> a script in /etc/cron.daily that should run my daily backups. But it
> doesn't get started.
> So I ran crontab -e to put that /etc/crontab in my (root's)
> crontab. Then it got active indeed, except that it generated
> errors because every command starts with `root':
>
> SHELL=/bin/sh
> PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
> MAILTO=root
>
> #-* * * * * root test -x /usr/sbin/atrun && /usr/sbin/atrun
> 0 * * * * root test -x /usr/sbin/faxqclean && /usr/sbin/faxqclean
> 5 22 * * * root test -x /usr/sbin/texpire && /usr/sbin/texpire
> 25 23 * * * root test -e /usr/sbin/faxcron && sh /usr/sbin/faxcron | mail
>FaxMaster
>
> #
> # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
> #
> */15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons
> How should one use this /etc/crontab?
/etc/crontab is the "system wide/controlled" way of doing crons.
'crontab -e' creates and uses individual/user modifiable crontabs.
If you use user crons, you don't put the user field in the crontab. If you
use the system wide crontab, you need the user field to tell cron for whom
the cron tolls.
--
Brad Shelton [EMAIL PROTECTED]
On Line Exchange http://ole.net
Detroit News http://detnews.com
--
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html