Re: Running cfgmaker from a PERL script
"Charles Johnson" <[email protected]> Thu, 31 Jul 2003 21:45:51 -0500
| Newsgroups | gmane.network.mrtg.devel |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected]
[email protected]
--
Unsubscribe mailto:[email protected]?subject=unsubscribe
Help mailto:[email protected]?subject=help
Archive http://www.ee.ethz.ch/~slist/mrtg-developers