From owner-freebsd-questions@FreeBSD.ORG Tue Jun 17 16:57:28 2003 Return-Path: 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 8AE4237B401 for ; Tue, 17 Jun 2003 16:57:28 -0700 (PDT) Received: from mail3.mn.rr.com (fe3.rdc-kc.rr.com [24.94.163.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99F6243F3F for ; Tue, 17 Jun 2003 16:57:27 -0700 (PDT) (envelope-from silver-fox@mn.rr.com) Received: from foxy ([65.25.245.249]) by mail3.mn.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 17 Jun 2003 18:57:26 -0500 From: "Mike McGrath" To: Date: Tue, 17 Jun 2003 18:57:50 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Cron wacking out X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 23:57:28 -0000 Hi - Right now I have a problem with my crontab. Here is the crontab file. silver-fox# crontab -l # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: src/etc/crontab,v 1.21.2.3 2000/12/08 10:56:07 obrien Exp $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # #minute hour mday month wday who command # */5 * * * * root /usr/libexec/atrun # # rotate log files every hour, if necessary 0 * * * * root newsyslog # # do daily/weekly/monthly maintenance 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly # # time zone change adjustment for wall cmos clock, # does nothing, if you have UTC cmos clock. # See adjkerntz(8) for details. 1,31 0-5 * * * root adjkerntz -a I keep getting these emails Message 5: >From root@silver-fox.us Tue Jun 17 00:20:00 2003 Date: Tue, 17 Jun 2003 00:20:00 -0500 (CDT) From: root@silver-fox.us (Cron Daemon) To: root@silver-fox.us 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 the log file /var/log/crontab Jun 17 00:20:00 silver-fox /usr/sbin/cron[246]: (root) CMD (/usr/libexec/atrun) Jun 17 00:20:00 silver-fox /usr/sbin/cron[247]: (root) CMD (root^I/usr/libexec/atrun) Jun 17 00:20:23 silver-fox crontab[253]: (root) LIST (root) So I see that ^I and root and what I am assuming is the CMD, which it really should not be. If I am right the cron is trying to run /usr/libexec/atrun as user root and not part of the command. I just don't get it. I have tried to edit the crontab with crontab -e and even copied a new file over from /usr/src/etc/crontab and then did crontab crontab to get updated. I'm lost. Thanks in advance. Mike