Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 23:21:51 +0930
From:      Shane Ambler <Shane@007Marketing.com>
To:        FreeBSD Mailing Lists <freebsd-performance@freebsd.org>, eirini <renas13@yahoo.com>
Subject:   Re: crontab prob
Message-ID:  <BF7DD70F.36567%Shane@007Marketing.com>
In-Reply-To: <20051020123908.16837.qmail@web31103.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20/10/2005 22:09, "eirini" <renas13@yahoo.com> wrote:

> Subject: Cron <root@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@007Marketing.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BF7DD70F.36567%Shane>