Maybe this can help, to get out the symptoms
PCAUSENEW1=`echo $PCAUSE | cut -d":" -f1 | sed "s/SYMPTOMS//"`
PCAUSENEW2=`echo $PCAUSE | awk '{ print
substr($0,1,index($0,"SYMPTOMS:") - 2) }'`
rgrd Erwin
________________________________
From: Jack doe [mailto:[email protected]]
Sent: donderdag 19 maart 2009 8:52
To: spectrum
Cc: [email protected]
Subject: Re: [spectrum] SANM
Hi,
Except for the contents of $NEWPCAUSE other variables like $MNAME and
$MTYPE are getting correctly displayed in the subject line.
Regards,
Jack
On Thu, Mar 19, 2009 at 3:35 AM, Bruce Richards
<[email protected]> wrote:
What is showing up in the subject line, if anything?
On Wed, Mar 18, 2009 at 6:29 PM, Jack doe <[email protected]>
wrote:
Hi List,
I am trying to pass the first line of the PCAUSE in the
subject of the mail its not working although the echo works ok .Any
ideas ?
NEWPCAUSE=`echo "$PCAUSE" | /bin/head -1`
echo "NewCause: $NEWPCAUSE"
$MAIL -f "[email protected]" -s " $NEWPCAUSE (Model
Name=$MNAME) (Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID
Regards,
Jack
* --To unsubscribe from spectrum, send email to
[email protected] with the body: unsubscribe spectrum
[email protected]
* --To unsubscribe from spectrum, send email to [email protected]
with the body: unsubscribe spectrum [email protected]
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]