On Wednesday 11 September 2002 12.12, Mohammad Fattahian wrote:
Hi list.
My Crontab file is as below. And I have some backup script in cron.daily but I receive an erro in /var/mail/root each 15 minutes and the scripts don't run.
Message-Id: <200209110845.g8B8j0MT030570@globe.ir.ebsir.com> From: root@globe.ir.ebsir.com (Cron Daemon) To: root@globe.ir.ebsir.com Subject: Cron
root /usr/bin/test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: /bin/sh: root: command not found
Is there anybody that has this experience ?
SHELL=/bin/sh PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin MAILTO=root # # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly # -*/15 * * * * root /usr/bin/test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 59 * * * * rm -f /var/spool/cron/lastrun/cron.hourly 14 0 * * * rm -f /var/spool/cron/lastrun/cron.daily 29 0 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly 44 0 1 * * rm -f /var/spool/cron/lastrun/cron.monthly
hmmmm. Is this really your /etc/crontab file? I note that only the first line has the username in it, the rest look line lines generally found in a user's own crontab file (the ones stored in /var/spool/cron/tabs) The /etc/crontab file has username like on the "run-crons" line, to show which user the job should run as, but the personal crontab files don't, so if this is root's personal file, remove the "root" from the "run-crons" line, and it should work. regards Anders