Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 1999 11:45:58 -0700
From:      Graeme Tait <graeme@echidna.com>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        Robin Huiser <listmail@node10c55.a2000.nl>, freebsd-questions@freebsd.org
Subject:   Re: Cron keeps bugging me...
Message-ID:  <37E3DDE6.569E@echidna.com>
References:  <199909171952.VAA43872@node10c55.a2000.nl> <19990917155231.A61093@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan Nelson wrote:

<snip>

> Aha.  There is a difference between the "crontab for root" and the
> "system crontab".  The system crontab has an extra field (the "who"
> field) that tells cron what user to run the job as.  The system crontab
> lives in /etc/crontab and is not edited via the "crontab -e" command.
> You simply edit /etc/crontab.
> 
> I don't know how you managed to get the system crontab into the crontab
> for the root user, but put it back into /etc/crontab where it belongs :)
> The crontab for the root user is usually empty.


A related question - I've made crontab files for users, but now need to have 
a task run as root by cron.

Should I edit the system crontab, or make a new crontab for root? Does it 
make a difference which way I do it?


-- 
Graeme Tait - Echidna



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37E3DDE6.569E>