Re: [gentoo-user] Cron problem

2006-04-24 Thread Uwe Thiem
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] roottest -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 * * * *   rootrm -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



Re: [gentoo-user] Cron problem

2006-04-24 Thread Mike Williams
On Monday 24 April 2006 08:21, Uwe Thiem wrote:
  # 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.

Yup, with vixie-cron the *system* crontab needs the user specified, any *user* 
crontab doesn't.

-- 
Mike Williams

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Cron problem

2006-04-23 Thread Anthony E. Caudel
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] roottest -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 * * * *   rootrm -f /var/spool/cron/lastrun/cron.hourly
#
1 3 * * *   rootrm -f /var/spool/cron/lastrun/cron.daily
#
15 4 * * 6  rootrm -f /var/spool/cron/lastrun/cron.weekly
#
30 5 1 * *  rootrm -f /var/spool/cron/lastrun/cron.monthly
#
0,10,20,30,40,50 * * * *roottest -x /usr/sbin/run-crons 
/usr/sbin/run-crons
# Hourly backups
0 1,7,13,19 * * *   rootrsnapshot hourly
# Daily backups
0 2 * * *   rootrsnapshot daily
# Weekly backups
0 3 * * 7   rootrsnapshot 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