Date: Sat, 4 Apr 1998 09:50:04 -0500 From: "Harry Patterson" <harry@visiontm.com> To: "freebsd-questions" <freebsd-questions@FreeBSD.ORG> Subject: crontab problems Message-ID: <01bd5fd8$f4084800$5fca4ace@hp.harry.com>
next in thread | raw e-mail | index | archive | help
I am having trouble with cron. I have Freebsd 2.2.5. The daily, weekly and monthly processes work fine, but several days ago I started to get error message in root's mail (see below) stating "root: not found" whenever it tries to run atrun or newsyslog. I've included a sample from the cron log file, the crontab file itself and the mail message. The atrun and newsyslog files are in the directories that the crontab file is pointing to. It's the root crontab file, so I don't think it's a rights issue. I'm at a loss as to what it's trying to tell me and how to fix it. Could someone point me in the right direction? Thanks Harry ******************************************** sample mail message ******************************************** >From daemon Sat Apr 4 09:25:00 1998Received: (from root@localhost) by visiontm.com (8.8.8/8.8.8) id JAA00640; Sat, 4 Apr 1998 09:25:00 -0500 (EST) Date: Sat, 4 Apr 1998 09:25:00 -0500 (EST) Message-Id: <199804041425.JAA00640@visiontm.com>From: root (Cron Daemon)To: root Subject: Cron <root@visiontm> root /usr/libexec/atrunX-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 ******************************************** crontab ******************************************** # /etc/crontab - root's crontab for FreeBSD # # $Id: crontab,v 1.13 1996/01/06 22:21:37 ache Exp $ # From: Id: crontab,v 1.6 1993/05/31 02:03:57 cgd 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 /usr/sbin/newsyslog # # do daily/weekly/monthly maintenance 0 2 * * * root /etc/daily 2>&1 | sendmail root 30 3 * * 6 root /etc/weekly 2>&1 | sendmail root 30 5 1 * * root /etc/monthly 2>&1 | sendmail root # # time zone change adjustment for wall cmos clock, # does nothing, if you have UTC cmos clock. # See adjkerntz(8) for details. 1,31 0-4 * * * root /sbin/adjkerntz -a ******************************************** cron log example ******************************************** Apr 4 09:30:00 visiontm CRON[657]: (root) CMD (/usr/libexec/atrun) Apr 4 09:30:00 visiontm CRON[658]: (root) CMD (root^I/usr/libexec/atrun) 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?01bd5fd8$f4084800$5fca4ace>