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.