Re: cron jobs not running as root

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Jeremy C. Reed
Dato:  
Til: PLUG
Emne: Re: cron jobs not running as root
On Tue, 27 Jul 2004 wrote:

> I have created a cron job and while logged in as root the scipt runs
> fine but if I configure crontab like contab -u root -e the job does not
> run.
>
> I do see the job start in /var/log/syslog
>
> The way that I know the job does not work sucessfully is becuase part of
> the job is to send out an email and that is not working unless running
> it at the command prompt as root.


Maybe the mail environment is different. Have a look in your mail logs.

Add some debugging to the cron job to report what parts it gets to.


Jeremy C. Reed

                 technical support & remote administration
                http://www.pugetsoundtechnology.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss