[hobbit] 4.2-RC-20060712 - hobbitdboard bug?

Werner (gmail Lists) wxxx333 at gmail.com
Wed Jul 19 17:44:39 CEST 2006


What kind of script?? 
If your talking of shell script you have to escape the "$" (string end)
token (and i personally like to put shell vars inside {}), something
like:

-----
$host_color = `$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=${chtarget}\$ fields=color"`;
-----

-wm

----------------------- Original Message -----------------------
From:    "Marco Avvisano" <marco.avvisano at regione.toscana.it>
To:      <hobbit at hswn.dk>
Date:    Wed, 19 Jul 2006 15:33:40 +0200
Subject: Re: [hobbit]   4.2-RC-20060712 - hobbitdboard bug?
----

> Hi,
> 
> uhhhh...it work from command line but not in the script if i use this 
> command:
> 
> $host_color = `$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget$ 
> fields=color"`;
> 
> no values are in this variable ...i don't know why ..
> 
> any ideas?
> thanks
> 
> 
> Marco
> 
> 
> 
> >> I use it as pcre regex, so your call should work if you use for
> >> example:
> >>
> >> $BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1$"  IT will list all 
> >> hosts where names're ending with "nal-asl-1"
> >> string. If you want restrict absolutelly you could use "^nal-asl-1$".
> >>
> >> Give it a try, hope it works.
> >>
> >> -Werner
> >>
> 



More information about the Xymon mailing list