[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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