Date: Sat, 24 Feb 2001 00:04:15 -0500 (EST) From: Matthew Emmerton <matt@gsicomp.on.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: crontab for root Message-ID: <Pine.BSF.4.21.0102232353170.2177-100000@xena.gsicomp.on.ca> In-Reply-To: <20010223205013.U87083@dell.dannyland.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Feb 2001, dannyman wrote: > On Fri, Feb 23, 2001 at 06:52:34PM -0800, Kalai Kalaiarasi wrote: > > Hi, > > > > Does anyone knows how to set crontab for root? I am > > able to set the crontab for normal user and it's > > working fine. When i try set crontab for root, the > > shell script doesnt seem to run. Is there anything > > else i need to do?? Please do help me.... I've seen a lot of posts on this lately, and I'm wondering if I'm missing something. To edit root's crontab, I usually just log in as root (from the console, or via ssh from my workstation) and just do a 'crontab -e'. Edit, save, and all is well. It's worked fine for me (runs over 15 scripts nightly for backups, log archival, web stats processing, cvsup, etc) on a bunch of my boxes for over a year and a half, along with the standard root cron stuff. This means that I have *two* root crontabs - the standard one in /etc/crontab, and my custom one in /var/cron/tabs/root. Is there anything wrong with this type of setup? More importantly, why would you add 'custom' mods to /etc/crontab when you can use 'crontab -e' to update the one in /var/cron/tabs/root? (The advantage I've seen is that when you upgrade, all of your custom mods to root's crontab won't be blown away if you accidentally install the /usr/src version of /etc/crontab.) -- Matt Emmerton 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?Pine.BSF.4.21.0102232353170.2177-100000>