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

Re: [hobbit] BBALPHAMSG for service 'proc', 'disk', etc no line feeds



On Fri, Apr 4, 2008 at 9:10 AM, Bill Arlofski <waa-hobbitml (at) revpol.com>
wrote:

>
> Galen Johnson wrote:
>
> > I'd be surprised if Hobbit was doing this...
> >
>
> Well, when I was working on my custom email script (mentioned last
> week), I can see that the $BBALPHAMSG that is handed off to the script
> by hobbit is exactly what I am seeing in the email, so hobbit is handing
> it to me (the script) with no formatting, line feeds etc.  I guess I was
> just wondering if there was some setting in the config file(s) to toggle
> formatting or something similarly simplistic that I might have missed.
>

Are you wrapping $BBALPHAMSG in double quotes in your script??  If you do
something like:

    echo $BBALPHAMSG | mailx .....

that will strip out the linefeeds.  Put quotes around it and you get the
message verbatim:

   echo "$BBALPHAMSG" | mailx ....

Ralph Mitchell