From owner-freebsd-questions Wed Feb 21 13:49:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 392DA37B4EC for ; Wed, 21 Feb 2001 13:49:15 -0800 (PST) (envelope-from lowell@be-well.ilk.org) Received: (from lowell@localhost) by be-well.ilk.org (8.11.2/8.11.2) id f1LLn9U00602; Wed, 21 Feb 2001 16:49:09 -0500 (EST) (envelope-from lowell) To: freebsd-questions@freebsd.org, genisis@istar.ca Subject: Re: cron mail References: <44lmqz4tfr.fsf@lowellg.ne.mediaone.net> From: Lowell Gilbert Date: 21 Feb 2001 16:49:09 -0500 In-Reply-To: genisis@istar.ca's message of "21 Feb 2001 22:41:28 +0100" Message-ID: <44itm3emga.fsf@lowellg.ne.mediaone.net> Lines: 72 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG genisis@istar.ca (Dru) writes: > On 21 Feb 2001, Lowell Gilbert wrote: > > > I don't have my copy at hand, but I'm *sure* that the book did not > > advise you to type "crontab /etc/crontab". > > > > It is, nonetheless, a frequently asked question. See > > http://www.freebsd.org/FAQ/admin.html#ROOT-NOT-FOUND-CRON-ERRORS > > Actually, it does on page 156 of the second edition. > > "crontab crontab" installs a crontab that you've created with an > editor. This step is unnecessary if you edit the crontab directly using > "crontab -e" as this switch invokes the vi editor for you then updates the > crontab accordingly. You appear to be confused about the difference between "crontab crontab" and "crontab /etc/crontab". /etc/crontab is not, as you claimed, a "crontab that you've created with an editor." It's a very different file, with a slightly different format, and completely inappropriate for installation with the crontab command. I repeat that I am *sure* that Greg Lehey never advised typing "crontab /etc/crontab". [I don't have that edition to check, but I'm still completely confident.] > Cheers, > > Dru > > > > > > > > > > Now every 5 minutes root gets an email. Something like: > > > Cron root > > > From: root > > > To: root > > > x-cron-env > > > etc.... > > > > > > root not found > > > > > > I've killed cron to stop the message, but why is it doing this? > > > > > > My shell is set to /bin/csh and I've tried changing it back to /bin/sh, > > > (chsh)but the messages just keep coming. > > > > > > Only line I can see in the crontab file that's causing this is: > > > /5 * *........root /usr/libexec/atrun > > > > > > I can't seem to come up with enough info on atrun to help, or how to > > > tell Cron-env that the shell is now /bin/csh. > > > > > > Any ideas? > > > > > > > > > Jim McIver > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message