Xymon Mailing List Archive search

New Hobbit "admin" Scripts

list Stefan Freisler
Thu, 21 Dec 2006 15:41:36 +0100
Message-Id: <user-fd0dbceb0c5c@xymon.invalid>

Hi,
firstly thx for your help.

are you shure your hobbit-server.cfg can be read because the Informations of the command are stored there (normaly). 
so you can use this function if grep not works
this_getQuery()
{
        RETURN=`echo "$1" | $SED -n "s/^.*$2=\([^&]*\).*\$/\1/p" | $SED "s/%0D//g"| $SED "s/%0A/\n/g" | $CUT -f 2 -d "=" | $SED "s/%3D/=/g"`
}

what i can do when sed not works too,... hmm i don't know yet but i will find an solution

stay patient ;-)

mfg
Stefan


Michael Nemeth <user-609d3fab5b2d@xymon.invalid> 21.12.2006 15:20
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
hobbit <user-ae9b8668bcde@xymon.invalid>
Kopie

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


And  $GREP -oE   will not work.  I bet the sed fails too!

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX  |><___________)          |               Home Page:
http://www.geocities.com/mjnemeth/
|               Work Page:http://scorpion/~nemethm/ |               Work Page:http://ortfsb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++