[mrtg] How To run as Daemon

Jonathan P Tornea jonathan.tornea at d1asia.com
Wed May 29 13:55:29 MEST 2002


Hi,

I have three diffirent config file im running with mrtg on a cron.  I want
to run this as daemon.  Does the script below will do the trick?


#!/bin/bash
cd /usr/local/mrtg-2917/bin && ./mrtg --user=mrtg
/home/mrtg/cfg/router01.cfg --logging /var/log/router01.log
cd /usr/local/mrtg-2917/bin && ./mrtg --user=mrtg
/home/mrtg/cfg/router02.cfg --logging /var/log/router02.log
cd /usr/local/mrtg-2917/bin && ./mrtg --user=mrtg
/home/mrtg/cfg/router03.cfg --logging /var/log/router03.log



Jonathan P Tornea
Network Engineer
DataOne Asia (Philippines) Inc

DID: (632) 580-9831
FAX: (632) 995-8252

----------------------------------------

This e-mail and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient or the person responsible,
be advised that you have received this e-mail in error and that any use,
dissemination, forwarding, printing or copying of this e-mail is strictly
prohibited. If you have received this e-mail in error, please immediately
notify DataOne Asia (Philippines) Inc at  +632 580 9888.

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



More information about the mrtg mailing list