crontab prob

Shane Ambler Shane at 007Marketing.com
Thu Oct 20 06:51:56 PDT 2005


On 20/10/2005 22:09, "eirini" <renas13 at yahoo.com> wrote:

> Subject: Cron <root at BSD> /usr/local/www/run.sh
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=root>
> X-Cron-Env: <USER=root>
> 
> env: mrtg: No such file or directory


> # cat /usr/local/www/run.sh
> env LANG=C mrtg  /usr/local/www/mrtg/eg2/eg2.cfg

I pick the problem to be this line ^ above.
Try changing the mrtg (the first one after LANG=C) in the run.sh to the full
path - from the cron email you got it is not located within PATH which is
why it can't find it.
If you removed the mrtg folder you may need to change the path to the cfg
file as well.

The other option is put mrtg in /usr/bin/


-- 

Shane Ambler
Sales Department
007Marketing.com
Shane at 007Marketing.com




More information about the freebsd-performance mailing list