[mrtg-developers] Re: Running cfgmaker from a PERL script

Charles Johnson johnson-c at MSSU.EDU
Fri Aug 1 04:45:51 MEST 2003


Do you think this will work? I've tried to make sure and escape
everything PERL might interpret as having some special meaning so as to
pass the elements as literal strings to the shell. If I've overdone it,
I'd like to know that too.

Sorry if the lines are broken. This web e-mail client doesn't allow for
much in the way of formatting.

@command=("cfgmaker",
          "--global \"Workdir: $pathPrefix{html}/$catagory\"",
           "--global \"Options\[_\]: growright,bits\"",
           "--no-down",
           "--show-op-down",
           "--noreversedns",
           "$community\@$address \>
$pathPrefix{mrtg}/$catagory/$name\.cfg" 
system(@command) == 0 or die ("Attempt to execute $command[0] failed:
$!");

Thanks for looking.


Ed Johnson 
eflashj at swbell.net
johnson-c at mail.mssc.edu

--
Unsubscribe mailto:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers



More information about the mrtg-developers mailing list