home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / editors / 2094 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.6 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!stuart
  2. From: stuart@austin.ibm.com (Stuart R. Yoder)
  3. Newsgroups: comp.editors
  4. Subject: Re: SUMMARY sending mail from shell
  5. Message-ID: <1992Aug25.134245.3394@awdprime.austin.ibm.com>
  6. Date: 25 Aug 92 13:42:45 GMT
  7. References: <1992Aug24.143011.4661@news.duc.auburn.edu>
  8. Sender: news@awdprime.austin.ibm.com (USENET News)
  9. Reply-To: stuart@piobe.austin.ibm.com
  10. Organization: IBM Austin
  11. Lines: 31
  12. Originator: stuart@piobe.austin.ibm.com
  13.  
  14.  
  15. In article <1992Aug24.143011.4661@news.duc.auburn.edu>, hendefd@woof.duc.auburn.edu (Frank Henderson) writes:
  16. > original post:
  17. > >I need a shell script (csh or sh) to send me mail after completion.
  18. > >I tried /usr/lib/sendmail -bm -fperson -t me and then echo'ing a 
  19. > >message but this requires an EOF or CTRL-d which I don't know how
  20. > >to do from a shell.  Could someone tell me how to do this or suggest
  21. > >a better way.
  22. > The popular answer was use mail:
  23. >     mail -s "$0 done" user << EOS
  24. >     Hey, $0 finished at `date`.
  25. >     All these folks were on the system at the time:
  26. >     `who`
  27. >     EOS
  28. > Most everyone gave this response with slightly different flavors.
  29. > Also -  echo '\004' is control D.
  30.  
  31. As a follow up to this, is there a way to send mail from a shell
  32. (as described above) but also copy other users on the message
  33. ( Cc: foo@bar ).  When I use the mail command interactively, it
  34. prompts for Cc:, but non-interactively I can't figure out how
  35. to copy users on a message.
  36. -- 
  37. -Stuart
  38. -----------------------------------------------------------
  39. My opinions are mine and not those of my employer.
  40. -----------------------------------------------------------
  41.