public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cron problem
@ 2006-04-24  5:08 Anthony E. Caudel
  2006-04-24  7:21 ` Uwe Thiem
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony E. Caudel @ 2006-04-24  5:08 UTC (permalink / raw
  To: Gentoo mailing list

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 root@localhost.localdomain  Fri Apr 17 23:50:01 2006
X-Original-To: root
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@hilary> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-24  9:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-24  5:08 [gentoo-user] Cron problem Anthony E. Caudel
2006-04-24  7:21 ` Uwe Thiem
2006-04-24  9:54   ` Mike Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox