[mrtg] Re: mrtg doesn't work from crontab

kelsey hudson khudson at tsss.org
Thu Jan 12 20:44:36 MET 2006


PAUL WILLIAMSON wrote:
> How about trying adding a shell to the command and putting the commands
> into a shell script?
> 
> */5 * * * * bash /path/to/bash/script
> 
> script:
> 
> /usr/local/bin/mrtg /usr/home/adam/mrtg/cfg/mrtg.cfg --logging
> /var/log/mrtg.log
> 
> Just make it executable and add your magic line at the top and you're
> all set!

With the crontab line the way it is, you don't even need a bangpath or 
executable permissions on the file. Just FYI ...

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list