[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CRON Question



Hi,

This usually indicates that a cron job has not got a PATH set correctly,
thus some part of the cronjob is unable to find a command that is not set
with an absolute PATH. This indicates that the job is part of the
/etc/cron.hourly jobs. If you 'cd' into the directory you will find scripts
that are to be run every hour. I can't tell which job is not running
correctly, but the thing to look for is the absence of a 'PATH=' near the
top of one of them. Or, run them by hand, one-by-one, and you should find
the one with the problem. You might want to trim your own env PATH variable
first, though, by doing: PATH=/bin:/sbin;export PATH. Note that to fix your
own PATH afterwards you will likely want to log out and then log back in
(or, '. ~/.bash_profile').

I hope that helps.


Chris



Brett Bunch | Guntersville City Schools wrote:

> I have the following message showing up each hour in my admin mail box.
>
> Date: Wed, 3 Oct 2001 00:01:00 -0500
> From: root (Cron Daemon)
> To: root
> Subject: Cron <root@dns1> root run-parts /etc/cron.hourly
>
> /bin/bash: root: command not found
>
> Can anyone help me out here?
>
> Brett Bunch
> Guntersville City Schools
> Network Operations Center
> Internet Server Administrator
> webmaster@xxxxxxxxx
> --------------------------------------------
> This e-mail and any attachment contains information which is private and
> confidential and is intended for the addressee only. If you are not an
> addressee, you are not authorized to read, copy or use this e-mail or
> any attachment. If you have received this e-mail in error, please
> destroy it and notify the sender by return e-mail.
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users