home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4580 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.3 KB  |  44 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!moo.acns.nwu.edu!cjw
  3. From: cjw@moo.acns.nwu.edu (Christopher Wargaski)
  4. Subject: Re: New mail?
  5. Message-ID: <cjw.721095545@moo.acns.nwu.edu>
  6. Keywords: mail, csh
  7. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  8. Organization: Northwestern University, Evanston, Illinois, USA
  9. References: <1992Nov6.063334.16263@u.washington.edu>
  10. Date: Sat, 7 Nov 1992 00:19:05 GMT
  11. Lines: 31
  12.  
  13. micah@carson.u.washington.edu (Micah Anderson) writes:
  14.  
  15. >How can I find out if I have new mail and when I do run my shell script?
  16. >I cannot use .filter, so would something like:
  17.  
  18. >test -s /usr/spool/mail/$USER
  19. >if (status == 0) then
  20. >script
  21. >endif
  22.  
  23. >would this be a good idear? (adding in a sleep and then running it again..)
  24.  
  25. >any suggestions?
  26.  
  27. If you are using elm, why not use newmail?  If not, how about biff?
  28.  
  29.  
  30. cjw
  31.  
  32. Christopher Wargaski
  33. Response Center
  34. Distributed Systems Services
  35. Academic Computing and Network Services
  36.  
  37. c-wargaski@nwu.edu
  38.  
  39. -- 
  40. Christopher J. Wargaski     <-or->         Aspheric Artwork Sigh
  41.         c-wargaski@nwu.edu; ACNS, DSS, RC
  42. ``The highest possible stage in moral culture is when we recognize
  43. that we ought to control our thoughts.''  --Charles Darwin
  44.