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 # 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily # 15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly # 30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly # 0,10,20,30,40,50 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons # Hourly backups 0 1,7,13,19 * * * root rsnapshot hourly # Daily backups 0 2 * * * root rsnapshot daily # Weekly backups 0 3 * * 7 root rsnapshot weekly # This file was written by KCron. Copyright (c) 1999, Gary Meyer # Although KCron supports most crontab formats, use care when editing. # Note: Lines beginning with "#\" indicates a disabled task ============================================================== PLease help. My own system is spamming me! Tony -- Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin -- gentoo-user@gentoo.org mailing list