BB Unix Network Monitor - Message

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

Re: {bb} Fix: problem with mailing acks with more than one word



Thanks, Russ. I haven't tried this on my platform (Solaris 10), but I did notice the problem and it's been a minor annoyance that I'd probably never have bothered to fix. I'll let you know how it works out.

Russ Starr wrote:

I noticed that when I replied to bb e-mail messages that my MSG only
displays the first word I entered.  Looking through bin/bb-mailack.sh,
I see that $MESSAGE is found by using:

MESSAGE=`$CAT $FILESUBJ | $GREP -i "MSG=" | $SED
's/^.*[Mm][Ss][Gg]=\(.*\)$/\1/' | $SED 's/[   ]/+/g'
 2>/dev/null`

This will switch any spaces with +'s.  When you later pass the
$MESSAGE to bin/bb, it doesn't like the +'s and only keeps the first
word.  For example:

./bb 192.168.1.1 "ack ack_event 1234567 30 Russ+is+fixing+it"

This will not work as intended and the message will only keep "Russ".
(as indicated by bbvar/acks/acklog)  I played around with it a bit and
if you do this:

./bb 192.168.1.1 "ack ack_event 1234567 30 Russ is fixing it"

it will work just fine. To fix it, I simply took out the last sed
command on the MESSAGE= line above so that my line reads:

MESSAGE=`$CAT $FILESUBJ | $GREP -i "MSG=" | $SED
's/^.*[Mm][Ss][Gg]=\(.*\)$/\1/' 2>/dev/null`

My info:

BB 1.9i on OpenBSD 3.8

-Russ

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index