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.