tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Mail How-To
@ 1998-11-13 15:07 Johnson, Andrew A.
  0 siblings, 0 replies; only message in thread
From: Johnson, Andrew A. @ 1998-11-13 15:07 UTC (permalink / raw)
  To: tru64-unix-managers



-----Original Message-----
From: Johnson, Andrew A. 
Sent: Friday, November 13, 1998 6:28 AM
To: alpha-osf-managers@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@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@where_I_am.com


-- 
-- Paul A. Sand                 | No, no, that wasn't me!
-- University of New Hampshire  |     (Anonymous)
-- pas@unh.edu                  | 
-- http://pubpages.unh.edu/~pas | 

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

If you are running shell (sh) script:

mailx -s "Process is Done" you@yourplace < /dev/null >/dev/null 2>&1

Which ought to silence any output from mailx.

S
-- 
-------------------------------------------------------------------------
Sean O'Connell                                  Email: sean@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@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@u.washington.edu    Seattle, WA  98122-4381
-----------------------------------------------------------------------

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

From: Roger Picard [mailto:Roger.Picard@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@where_I_am.com < /tmp/message.txt
rm /tmp/message.txt

 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-11-13 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-13 15:07 SUMMARY: Mail How-To Johnson, Andrew A.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox