SCIENTIFIC-LINUX-USERS Archives

July 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Traylen <[log in to unmask]>
Reply To:
Steve Traylen <[log in to unmask]>
Date:
Thu, 12 Jul 2007 18:29:27 +0200
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (517 bytes) , smime.p7s (1609 bytes)

On Jul 12, 2007, at 5:39 PM, Miles O'Neal wrote:

> Keith Chadwick said...
> |
> |Sure!
> |
> |=09/bin/mail -s "$message_subject" $message_mailto < $message_file
>
> Just in case you don't know, if everything you need
> is in the script, you can avoid writing a for the
> message body:
>

And to get the stderror as well add 2>&1 (assuming (ba)sh)

> /bin/mail -s "$message_subject" $message_mailto <<__EOD__ 2&>1
> message body here
> __EOD__

-- 
Steve Traylen
Work Calendar: http://tinyurl.com/22lw9o
[log in to unmask]
CERN, IT-GD-OPS.





ATOM RSS1 RSS2