Date: Tue, 17 Jun 2003 18:57:50 -0500 From: "Mike McGrath" <silver-fox@mn.rr.com> To: <freebsd-questions@freebsd.org> Subject: Cron wacking out Message-ID: <GDEBLLAOCAACOFHIIFOLGECKCCAA.silver-fox@mn.rr.com>
next in thread | raw e-mail | index | archive | help
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@silver-fox> 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> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?GDEBLLAOCAACOFHIIFOLGECKCCAA.silver-fox>