On 24 April 2006 06:08, Anthony E. Caudel wrote: > For the last few days I have had a cron problem. It started when I was > trying to to find a way to modify the crontab by a script. Don't know > what I did but ever since, every cron script (root's only) emails me a > notice like the following: > > =========================================================== > From [EMAIL PROTECTED] Fri Apr 17 23:50:01 2006 > X-Original-To: root > From: [EMAIL PROTECTED] (Cron Daemon) > To: [EMAIL PROTECTED] > Subject: Cron <[EMAIL PROTECTED]> root test -x /usr/sbin/run-crons && > /usr/sbin/run-crons > X-Cron-Env: <SHELL=/bin/bash> > X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin> > X-Cron-Env: <MAILTO=root> > X-Cron-Env: <HOME=/> > X-Cron-Env: <LOGNAME=root> > X-Cron-Env: <USER=root> > Date: Fri, 7 Apr 2006 23:50:01 -0500 (CDT) > > /bin/bash: root: command not found > =========================================================== > > Interestingly, all the scripts run fine. It's just that I get emails > every ten minutes (the frequency of the "test -x /usr...") and it's > driving me crazy. > > Can't figure that last line. Is something trying to run the command > "root"? > > I am using vixie-cron and this is root's crontab: > > ============================================================= > # Global variables > SHELL=/bin/bash > PATH=/sbin:/bin:/usr/sbin:/usr/bin > MAILTO=root > HOME=/ > # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly > 0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly ^^^^
This is trying to run the command "root" which doesn't exist. Uwe -- Why do consumers keep buying products they will live to curse? -- gentoo-user@gentoo.org mailing list