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:
Manuel Mussini <[log in to unmask]>
Reply To:
Manuel Mussini <[log in to unmask]>
Date:
Thu, 12 Jul 2007 18:47:33 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Nice tricks!
:-)

Thanks again!

Bye...

> -----Original Message-----
> From: Steve Traylen [mailto:[log in to unmask]]
> Sent: Thursday, July 12, 2007 18:29
> To: Miles O'Neal
> Cc: Steve Traylen; Scientific Linux Users; Manuel Mussini
> Subject: Re: Mail from a script
> 
> 
> 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