home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!sifon!anibal
- From: anibal@ee470.ee.mcgill.ca (Anibal Jodorcovsky)
- Subject: Re: checking for mail from shell (GOT IT!!!)
- Message-ID: <1992Sep15.174433.3403@sifon.cc.mcgill.ca>
- Sender: news@sifon.cc.mcgill.ca
- Nntp-Posting-Host: beetle.ee.mcgill.ca
- Organization: EE Lab, McGill University EE Lab, Montreal
- References: <1992Sep14.134158.5814@sifon.cc.mcgill.ca>
- Date: Tue, 15 Sep 1992 17:44:33 GMT
- Lines: 38
-
- In article <1992Sep14.134158.5814@sifon.cc.mcgill.ca> I wrote:
- >
- >Hi all!!!
- >
- >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????
-
- Well since I posted this article I got a couple of answers,
- all of them working fine, and finally got my little program
- running ok!
- They suggested (among other things):
- mail -e
-
- if (-f /usr/spool/anibal)
-
- using the 'from' program and piping to a file
-
- I finally used the 2nd. one but want to thanks:
-
- -twpierce@unix.amherst.edu
- -newton@wilbur.psu.edu
- -leo@ine.philips.nl
- -gruc02.nor.chevron.com!hmjem@uunet.uu.net
-
- Thanks again!!
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- = Anibal Jodorcovsky - anibal@ee470.ee.mcgill.ca =
- =\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\=
- = "I believe in God, only I spell it Nature." =
- = F.L.Wright =
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-