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