Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 22:01:53 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Schrodinger <schrodinger@konundrum.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Cron
Message-ID:  <20030127040153.GO6137@dan.emsphone.com>
In-Reply-To: <2459.159.134.74.211.1043639597.squirrel@webmail.konundrum.org>
References:  <2459.159.134.74.211.1043639597.squirrel@webmail.konundrum.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 27), Schrodinger said:
> I'm loooking for help with Cron. When cron is running my mailbox starts to
> fill up with hundreds of mails from cron and they are all the same:
> 
> Date: Thu, 23 Jan 2003 17:40:00 GMT
> From: root@schro.konundrum.org (Cron Daemon)
> To: root@schro.konundrum.org
> Subject: Cron <root@schro> root /usr/libexec/atrun
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/games:/usr/local/sbin:/usr/X11R6/bin>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <LOGNAME=root>
> X-Cron-Env: <USER=root>
> 
> root: not found
> 
> And in the log file they are full with:
> 
> Jan 22 13:25:00 schro cron[44063]: (root) CMD (atrun)
> Jan 22 13:25:00 schro cron[44064]: (root) CMD (root^Iatrun)

It looks like you copied the system crontab (/etc/crontab) into root's
crontab (/var/cron/tabs/root, usually edited with crontab -e).  Don't
do this; they are different files and have different formats.  The
system crontab has an additional field specifying the user that the
command is to run as.

-- 
	Dan Nelson
	dnelson@allantgroup.com

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?20030127040153.GO6137>