Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 13:35:49 +0200
From:      "Thomas Krause (Webmatic)" <tk@webmatic.de>
To:        eirini <renas13@yahoo.com>
Cc:        freebsd-performance@freebsd.org, Markus Kovero <markus.kovero@multiwise.fi>
Subject:   Re: crontab-smb probs
Message-ID:  <43578115.4040103@webmatic.de>
In-Reply-To: <20051020113038.12003.qmail@web31101.mail.mud.yahoo.com>
References:  <20051020113038.12003.qmail@web31101.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> 
> 
> 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: 
> */5 * * * * /usr/local/www/run.sh 
> 
> and i get now THIS mail:
> 
>>N  1 root@BSD.e-global.gr  Thu Oct 20 12:35  23/874  
> 
> "Cron <root@BSD> /usr/local/www/run.sh"
> & 
> Message 1:
>>From root@BSD.BSD.org Thu Oct 20 12:35:00 2005
> Date: Thu, 20 Oct 2005 12:35:00 +0300 (EEST)
> From: root@BSD.BSD.org (Cron Daemon)
> To: root@BSD.BSD.org
> 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
> 

Hi,

specify the full path, e.g. /usr/local/bin/mrtg
instead of mrtg

BTW: mrtg dosnt'n need root privileges to run!

Regards,
Thomas.

-- 
------------------------------------------------------------
Thomas Krause                   Webmatic Kommunikations GmbH
                                         Tel: +49 345 7779999
------------------------------------------------------------



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