On Tue, 2 Sep 2003 15:03:01 -0700
Allen Wayne Best <[EMAIL PROTECTED]> wrote:

> hello:
> 
> i am getting the following message when the cron.hourly jobs are invoked. but 
> not on the daily or weekly. (a month has not passed, so i don't know if the 
> monthly run will have the problem.)
> 
> interestingly enough, there are no files in /etc/cron.hourly.
> 
>       /bin/bash: line 1: root: command not found
> 
> the /etc/crontab file is as follows:
> 
> SHELL=/bin/sh
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> MAILTO=root
> HOME=/
> 
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-parts /etc/cron.daily
> 22 4 * * 0 root run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly

Hi Allen,

     Any chance you've been editing the root users crontab?   
I'm guessing you've got the cron.daily line copied into the root
users crontab (which is separate from /etc/crontab).  If you do
a  "crontab -e" when logged in as root you'll likely see the
offending entry.   Another way to confirm this is to comment 
out the hourly line in the /etc/crontab and see if the error 
messages continue.

     The root users crontab does not require the extra user-field
that is required by the /etc/crontab.   Therefore, if this line is 
copied verbatim, the word "root"  will be misinterpreted as the 
start of the command to execute generating an error like the
one you see.

HTH,
Sean


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to