Xymon Mailing List Archive search

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

list Ralph Mitchell
Wed, 5 Sep 2007 22:30:49 -0500
Message-Id: <user-218852bc8f6f@xymon.invalid>

On 9/5/07, Frank Flynn <user-32aefea160e6@xymon.invalid> 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