From owner-freebsd-questions Thu Apr 22 11:55:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 1AD5614E5C for ; Thu, 22 Apr 1999 11:53:49 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id LAA03706; Thu, 22 Apr 1999 11:50:41 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Thu, 22 Apr 1999 11:50:40 -0700 (PDT) From: Doug White To: Stefano Riva Cc: Rudi Opperman , freebsd-questions@FreeBSD.ORG Subject: Re: help with cron and crontab mail messages In-Reply-To: <3.0.5.32.19990422131025.00a47eb0@relay.alice.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 22 Apr 1999, Stefano Riva wrote: > At 12.09 22/04/99 +0200, you wrote: > >Yes, this is exactly what happened. I have however attempted to fix the > >problem. I have removed my additional jobs from /etc/crontab and adding > >them to root's crontab (/var/cron/tab/root i think) "via crontab -e" > >whilst logged in as root. (ie not by editing the file directly) > > However i still get the above message - what does it mean - and why are > >the jobs not running? After all, they did when i added them > >(incorrectly) to /etc/crontab and then did "crontab -u root > >/etc/crontab". > >Should i instead add them to /etc/crontab and bring them up, as root, > >via "crontab /etc/crontab" ? > >help > > Don't panic! Please read carefully the answers. Here in Italy, we would > say "you're drowning in a glass of water"... ;-) > > If you want to put your jobs in /etc/crontab, then *DON'T* "bring them > up"! Simply open /etc/crontab, add your jobs, save the file and cron will > run them automagically. Just in case you have to clean the root user's > crontab after past trials, use "crontab -r". > If you want to use users' crontabs, the syntax is different, so *DON'T* > put "root" or any other user in the lines describing your jobs; that column > doesn't exist in users' crontabs, because the jobs are always run as the > owner of that crontab. > Don't forget to kill -HUP cron. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message