home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 11094 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.6 KB  |  51 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!sifon!anibal
  3. From: anibal@ee470.ee.mcgill.ca (Anibal Jodorcovsky)
  4. Subject: Re: checking for mail from shell (GOT IT!!!)
  5. Message-ID: <1992Sep15.174433.3403@sifon.cc.mcgill.ca>
  6. Sender: news@sifon.cc.mcgill.ca
  7. Nntp-Posting-Host: beetle.ee.mcgill.ca
  8. Organization: EE Lab, McGill University EE Lab, Montreal
  9. References: <1992Sep14.134158.5814@sifon.cc.mcgill.ca>
  10. Date: Tue, 15 Sep 1992 17:44:33 GMT
  11. Lines: 38
  12.  
  13. In article <1992Sep14.134158.5814@sifon.cc.mcgill.ca> I wrote:
  14. >
  15. >Hi all!!!
  16. >
  17. >I am trying to check from .login if I have mail.
  18. >BUT, it's not just mail what I want to do, since
  19. >I want to specify an if...then sort of thing 
  20. >IN CASE I have mail.
  21. >
  22. >Does anybody know which variable I have to check for
  23. >in order to get a proper condition to use it in an
  24. >if...then-like statement????
  25.  
  26. Well since I posted this article I got a couple of answers,
  27. all of them working fine, and finally got my little program
  28. running ok!
  29. They suggested (among other things):
  30. mail -e
  31.  
  32. if (-f /usr/spool/anibal)
  33.  
  34. using the 'from' program and piping to a file
  35.  
  36. I finally used the 2nd. one but want to thanks:
  37.  
  38. -twpierce@unix.amherst.edu
  39. -newton@wilbur.psu.edu
  40. -leo@ine.philips.nl
  41. -gruc02.nor.chevron.com!hmjem@uunet.uu.net
  42.  
  43. Thanks again!!
  44.  
  45. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  46. =   Anibal Jodorcovsky - anibal@ee470.ee.mcgill.ca  =
  47. =\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\=
  48. =    "I believe in God, only I spell it Nature."    =
  49. =                              F.L.Wright           = 
  50. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  51.