BB Unix Network Monitor - Message

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

Re: {bb} Put returned messages on two lines




On Apr 4, 2006, at 11:55 AM, Philip Clark wrote:


On Tue, 2006-04-04 at 00:52, M Tice wrote:
Hello, I have a simple script (that is modified from a brother's RAID
reporting script) in which it will look through lastlog and if there
are more than 2 people listed it will send a red alert.  So far the
script works fine but the output to BBDISP doesn't look fine.

Here's part of the script:

# Prepare to send message
LINE="status $HOST.$TEST $COLOR `date` $MESSAGE $result"

A little confusing to look at but see how it combines the status/ date/
first line of the message into one line? Any ideas on how to format
this? I'm sorry if this looks sloppy and sorry if this has been
posted/replied to in the past, I couldn't find an answer.

Just split the status message over a number of lines. The first is displayed in larger type so something like:

  LINE="status $HOST.$TEST $COLOR `date` $MESSAGE
  $result"

should give you a more readable result.

Cheers, Phil.




That did it, thanks Phil.


Matt
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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