[hobbit] bb will not run from a shell script (script problem??)

Ralph Mitchell ralphmitchell at gmail.com
Thu Sep 6 05:30:49 CEST 2007


On 9/5/07, Frank Flynn <frank at declan.com> wrote:
> OK well I found a work around,
>
> If I break it into two in the script and pass the data to bb through
> stdin this will work
> ----
> MYCMD="$BB $BBDISP -"
>
> echo "status $MACHINE.Bd@ $STATUS `date` local web check" | $MYCMD
> ----
>
> This works for me - but is there a better way?

Why not something like this:

     MESSAGE="status $MACHINE.Bd@ $STATUS `date` local web check"
     $BB $BBDISP "$MESSAGE"

Ralph Mitchell



More information about the Xymon mailing list