From owner-freebsd-questions Sun Jan 26 20: 1:56 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E15A37B401 for ; Sun, 26 Jan 2003 20:01:55 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A89D043F13 for ; Sun, 26 Jan 2003 20:01:54 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id h0R41rQa026544; Sun, 26 Jan 2003 22:01:53 -0600 (CST) (envelope-from dan) Date: Sun, 26 Jan 2003 22:01:53 -0600 From: Dan Nelson To: Schrodinger Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Cron Message-ID: <20030127040153.GO6137@dan.emsphone.com> References: <2459.159.134.74.211.1043639597.squirrel@webmail.konundrum.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2459.159.134.74.211.1043639597.squirrel@webmail.konundrum.org> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 /usr/libexec/atrun > X-Cron-Env: > X-Cron-Env: > X-Cron-Env: > X-Cron-Env: > X-Cron-Env: > > 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