home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3947 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.5 KB  |  36 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!rsg1.er.usgs.gov!fmsrl7!ef2007!mjo
  3. From: mjo@ef2007.efhd.ford.com (Mike O'Connor)
  4. Subject: Re: checking for mail from shell
  5. Message-ID: <BuKxMF.A0q@ef2007.efhd.ford.com>
  6. X-Disclaimer: Not an official spokesperson for Ford OPEO
  7. Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
  8. Organization: International Affairs, Overseas Engineering, "Fordz"
  9. References: <1992Sep14.134158.5814@sifon.cc.mcgill.ca>
  10. Date: Mon, 14 Sep 1992 17:51:51 GMT
  11. Lines: 23
  12.  
  13. In article <1992Sep14.134158.5814@sifon.cc.mcgill.ca> anibal@ee470.ee.mcgill.ca (Anibal Jodorcovsky) writes:
  14.  
  15. :I am trying to check from .login if I have mail.
  16. :BUT, it's not just mail what I want to do, since
  17. :I want to specify an if...then sort of thing 
  18. :IN CASE I have mail.
  19. :
  20. :Does anybody know which variable I have to check for
  21. :in order to get a proper condition to use it in an
  22. :if...then-like statement????
  23.  
  24. You check to see if the size of the mail file -- typically
  25. /usr/spool/mail or /usr/mail -- is larger than 0k, and proceed from
  26. there.  The mechanism for doing this depends on how the "test" command
  27. works with your csh or derivative on your particular platform.
  28.  
  29.                         ...Mike
  30.  
  31. -- 
  32.  Michael J. O'Connor           |  Internet:  mjo@fmsrl7.srl.ford.com
  33.  Ford Motor Company, OPEO      |  UUCP:      ...!{backbone}!fmsrl7!mjo
  34.  20000 Rotunda, Bldg. 1-3001   |  Phone:     +1 (313) 248-1260
  35.  Dearborn, MI  48121           |  Fax:       +1 (313) 323-6277
  36.