[mrtg] Re: STDIN ?

Daniel R . Kilbourne drk at voyager.net
Thu Aug 23 02:06:26 MEST 2001


It actually was pretty simple - just a few added lines to MRTG_lib.pm allowing for STDIN, and now
I can call mrtg thusly:

/bin/cat /home/mrtg/configs/test.cfg | /home/mrtg/bin/mrtg STDIN



Alex van den Bogaerdt extolled:
> 
> Daniel R . Kilbourne wrote:
> > 
> > 
> > All,
> > Has anyone out there hacked mrtg/MRTG_lib.pm to allow mrtg to take config files as STDIN rather than a text file?
> 
> I didn't do so but even without my limited knowledge of perl: isn't it
> just as simple as comparing $cfgfile to '-' and setting <CFG> to stdin
> if so?
> 
> HTH
> -- 
>    __________________________________________________________________
>  / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
> | work                                                         private |
> | My employer is capable of speaking therefore I speak only for myself |
> +----------------------------------------------------------------------+
> | Technical questions sent directly to me will be nuked. Use the list. | 
> +----------------------------------------------------------------------+
> | http://faq.mrtg.org/                                                 |
> | http://rrdtool.eu.org  --> tutorial                                  |
> +----------------------------------------------------------------------+
> 
> --
> 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
> 

-- 
--------------------------------
Daniel R. Kilbourne
daniel.kilbourne at corecomm.com
CoreComm Systems Engineering
________________________________

--
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