home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!news.ans.net!cmcl2!adm!news
- From: partl@hp01.boku.ac.at (Hubert Partl)
- Newsgroups: comp.unix.questions
- Subject: Re: test for mail
- Message-ID: <34221@adm.brl.mil>
- Date: 23 Nov 92 08:49:57 GMT
- Sender: news@adm.brl.mil
- Lines: 26
-
- Reply to
- > From: Anibal Jodorcovsky <anibal@ee470.ee.mcgill.ca>
- > Subject: checking for mail from shell
- > Date: 14 Sep 92 13:41:58 GMT
- >
- > 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.
-
- in .login (C-Shell):
- mail -e
- if ( $STATUS ) then
- ...
- endif
-
- in .profile (Bourne-Shell):
- if mail -e
- then ...
- fi
-
- ---
- Dr. Hubert Partl Mail: partl@mail.boku.ac.at
- EDV-Zentrum, Universitaet fuer Bodenkultur Phone: (+43 1) 36 92 924 - 233
- Nussdorfer Laende 11 Fax: (+43 1) 36 92 924 - 200
- A-1190 Wien, Austria (-: Make laugh, not war! :-)
-