> the default /usr/local/bin/mrtg script. I had no
Hi Spen
if you are installing applications from ports you
need to add this in you personal crontab's:
PATH=.:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
--
wendel | http://www.dotpix.com.br/~wendel/
cel 91449380 | msn: [EMAI
Thank all of you that responded to my email.
The problem has been solved after I tried what Thomas
said. It seems that the problem had sth to do with
the default /usr/local/bin/mrtg script. I had no
reference to it in the run.sh. after I edit the
crontab and started the .cfg as well as the
/usr/
On 20/10/2005 22:09, "eirini" <[EMAIL PROTECTED]> wrote:
> Subject: Cron <[EMAIL PROTECTED]> /usr/local/www/run.sh
> X-Cron-Env:
> X-Cron-Env:
> X-Cron-Env:
> X-Cron-Env:
> X-Cron-Env:
>
> env: mrtg: No such file or directory
> # cat /usr/local/www/run.sh
> env LANG=C mrtg /usr/local/www/
Hello,
from the error message originator - env(1) -, I´d say there´s some
environment variable missing at run. Crond does not execute ~/.profile
and similars, which is normally where these variables are defined, and
then they must be set by the shellscript itself.
In short, mrtg is being cal
eirini wrote:
shouldn't I had posted this in this list?
If not could you tell me which would be the proper
mailing list?
Thank you :)
Spen
freebsd-questions@ would have been a better choice. Read
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL
for a
# whereis mrtg
mrtg: /usr/local/bin/mrtg
/usr/local/man/man1/mrtg.1.gz /usr/ports/net-mgmt/mrtg
# cat /usr/local/www/run.sh
env LANG=C mrtg /usr/local/www/mrtg/eg2/eg2.cfg
the /usr/local/bin/mrtg is a default script I think.
# ls -la |grep mrtg
-r-xr-xr-x 1 root wheel 88382 Oct 11 14:19
That's exactly what I have done! I suspect that there
is on another crontab file (?) a reference to an mrtg
folder cause now I have moved my run.sh to another
folder and my crontab line is like this:
*/5 * * * * /usr/local/www/run.sh
no mrtg anywhere :) :)
but still get this mail!!! :
Messag
Thank you dear friend. I did the changes you told me.
So, I did remove "root" and say crontab -e as root but
nothing changed. it kept sending mail saying that it
cannot find mrtg directory...BUT there is one..
I also copied the run.sh scritp to the parent folder.
and now crontab -l gives:
>>It will not start! I edit it with crontab -e and
added
>>the line
>>*/5 * * * * root /usr/local/www/mrtg/run.sh with vi
>>editor.
>
>
>afaik, you don't define user who runs that crontab
>there, so remove
>"root" and say crontab -e as root when you want
toedit >it and you
>should be ok.
Th