SUMMARY: Mail How-To

From: Johnson, Andrew A. <aajohnson_at_escocorp.com>
Date: Fri, 13 Nov 1998 07:07:55 -0800

-----Original Message-----
From: Johnson, Andrew A.
Sent: Friday, November 13, 1998 6:28 AM
To: alpha-osf-managers_at_ornl.gov
Subject: Mail How-To



Morning, All!

Need to send a notification at the end of a process. Just need to know when
the process is done.
Have used:
mailx -s "Process is Done" myself_at_where_I_am.com < /dev/null
This, however, produces a residual (and undesired) message in system mail:
"Null message body. Hope that's okay"

How can notification be sent without the system mail?

tia

Andrew Johnson
Computer Operations
ESCO Corporation
Portland, Oregon
++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks, All

Several good replies among which were:


+++++++++++++++++++++++++++++++++++++++++

How about

         echo " "| mailx -s "Process is Done" myself_at_where_I_am.com


-- 
-- Paul A. Sand                 | No, no, that wasn't me!
-- University of New Hampshire  |     (Anonymous)
-- pas_at_unh.edu                  | 
-- http://pubpages.unh.edu/~pas | 
+++++++++++++++++++++++++++++++++++++++++
If you are running shell (sh) script:
mailx -s "Process is Done" you_at_yourplace < /dev/null >/dev/null 2>&1
Which ought to silence any output from mailx.
S
-- 
-------------------------------------------------------------------------
Sean O'Connell                                  Email: sean_at_stat.Duke.EDU
Institute of Statistics and Decision Sciences   Phone: (919) 684-5419
Duke University                                 Fax:   (919) 684-8594
+++++++++++++++++++++++++++++++++++++++++++++
Try
date | mailx -s "Process is Done" myself_at_where_I_am.com
-----------------------------------------------------------------------
Pirie Hart, Ph.D.                    Univ. of Washington, Box 359931
Senior Computer Specialist           Center for AIDS and
Telephone: (206) 720-4312                 Sexually Transmitted Diseases
Facsimile: (206) 720-4209            1001 Broadway, Suite 215
Internet:  pirie_at_u.washington.edu    Seattle, WA  98122-4381
-----------------------------------------------------------------------
+++++++++++++++++++++++++++++++++++++++++++++
From: Roger Picard [mailto:Roger.Picard_at_digital.com]
Sent: Friday, November 13, 1998 6:35 AM
To: Johnson, Andrew A.
Subject: RE: Mail How-To
echo "Process is done" > /tmp/message.txt
mailx -s "Process is Done" myself_at_where_I_am.com < /tmp/message.txt
rm /tmp/message.txt
 
Received on Fri Nov 13 1998 - 15:08:51 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT