[rrd-users] Re: Newbie needs help with 14all.cgi
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Thu Feb 22 17:25:59 MET 2001
David Sawyer wrote:
> But when I execute the script I get the following error...
>
> C:\mrtg-2.9.4\contrib\14all>perl 14all2.cgi
> Content-type: text/html
>
> <H1>Software error:</H1>
> <PRE>/\([^\]*)\.(cgi|pl)$/: unmatched [] in regexp at 14all2.cgi line 104.
> </PRE>
> <P>
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!
cheers,
--
__________________________________________________________________
/ 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: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