Antwort: Re: [hobbit] New Hobbit "admin" Scripts

stefan.freisler at aspect-online.de stefan.freisler at aspect-online.de
Wed Dec 27 09:39:57 CET 2006


Hi,
thx for your work!

But on your solution there is one Problem, becouse it only work if you 
have only 1 variable to send in most of this scripts i used more. I have 
used this solution without cut, awk, grep i hope it works. You can 
download it heer:

http://www.fh-augsburg.de/~henk/hobbit/

it is Version 0.0.7 with this change.

this_getQuery()
{
        RETURN=`echo "$1" | $SED -n "s/^.*$2=\([^&]*\).*\$/\1/p" | $SED 
"s/%0D//g"| $SED "s/%0A/\n/g" | $SED "s/%3D/=/g"` 
}

The many sed is needing because cgi converts some Characters in "%ASCI" 
and noone have given me an small solution, so i reconvert every Ascii 
value manually. Its not beatyfull but it works (i hope so ;-) )

I hope i could help you
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20061227/99758285/attachment.html>


More information about the Xymon mailing list