Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2001 09:21:43 -0600 (CST)
From:      Guy Helmer <ghelmer@palisadesys.com>
To:        Scott Reber <sreber@atltechgroup.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: cron -- root: not found
Message-ID:  <Pine.LNX.4.21.0101110919110.8592-100000@magellan.palisadesys.com>
In-Reply-To: <4.3.2.7.2.20010111095950.00b0de10@atltechgroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Jan 2001, Scott Reber wrote:

> I am a running FreeBSD 4.2R system and am quite new at it.
> 
> Last night, I decided to look at  the default crontab so I issued 
> "crontab  -u root -e" (I now realize I should have used -l instead) and 
> there it was. Since I really didn't want to change anything, typed ":" and 
> then "q!".  I then decided I wanted to print the contents of 
> /etc/periodic/daily" so I typed " cd /etc/periodic/daily" and then "cat * > 
> dailyfile".  / immediately filled up.  I deleted dailyfile and reissued the 
> cat as " cat * > ~/dailyfile" and all was well.
> 
> Well not quite, I am getting an email from cron every five minutes:
> _________________________________________________
> Date: Wed, 10 Jan 2001 21:50:00 -0500 (EST)
> Message-Id: <200101110250.f0B2o0500226@a.b.c>
> Subject: Cron <root@mimas> root	/usr/libexec/atrun
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <LOGNAME=root>
> X-Cron-Env: <USER=root>
> To:  root@a.b.c
> From:  root@a.b.c (Cron Daemon)
> X-UIDL: ec9260d669e9fb0937417cdebb909904
> 
> root: not found
> _____________________________________________________
> 
> Any and all ideas are welcome

The system crontab (/etc/crontab) has a different format than per-user
crontabs.  See the crontab(5) for details.

I think you installed the system crontab (/etc/crontab) as root's
crontab.  If so, use "crontab -u root -r" to revert this problem, and just
edit /etc/crontab to make changes.

Guy

-- 
Guy Helmer, Ph.D.
Sr. Software Engineer, Palisade Systems         ---   ghelmer@palisadesys.com
http://www.palisadesys.com/~ghelmer



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.LNX.4.21.0101110919110.8592-100000>