[rrd-users] Re: Newbie needs help with 14all.cgi

David Sawyer david.sawyer at uk.mckhboc.com
Thu Feb 22 18:00:33 MET 2001

I am no programmer, but at line 104 it reads...
$cfgfile = $1 . '.cfg';

Near the top of the script I've changed a line to read...
$cfgfile = 'c:/mrtg-2.9.4/bin/mrtg2.cfg';

> Escape characters can be a bitch.  I assume you want to match
> strings like '\something.pl' but not '\\server\host\whatever.pl'
> The backslash has a special meaning. It tells the software to use
> the next character without a special meaning (if any).  So, to scan
> for a backslash, you have to type two of them. You are now starting
> a range (with '[') containing, amongst other characters, the ']' char.
> It should probably be something like /\\[^\\]*\.(cgi|pl)$/
> although I'm not sure that this is safe!
The information contained in this e-mail is confidential and is intended
only for the named recipient(s). If you are not the intended recipient you
must not copy, distribute, or take any action or reliance on it.
If you have received this e-mail in error, please notify the sender.
Any unauthorised disclosure of the information contained in this e-mail
is strictly prohibited.

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list