Hi Jack, list,

maybe a difference between our systems but we have "head" in
"/usr/bin/head", not "/bin/head" (all Solaris and Linux systems).

Try the following on shell console:

"which head" (without the quotes)

This should give you the head-location. If not, head is either not
installed or not accessible through your PATH variable. In this case
look direkt in /bin/ and /usr/bin/ to find the right location.

If it's in /bin/ (like you configured your script) I have no clue why
this should not work - if it's in /usr/bin/ change your script setting
and retest the script.

Hope this helps.

Regards,
Marcel

On Thu, Mar 19, 2009 at 8:52 AM, Jack doe <[email protected]> wrote:
> 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]

Reply via email to