home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!ukma!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!moo.acns.nwu.edu!cjw
- From: cjw@moo.acns.nwu.edu (Christopher Wargaski)
- Subject: Re: New mail?
- Message-ID: <cjw.721095545@moo.acns.nwu.edu>
- Keywords: mail, csh
- Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
- Organization: Northwestern University, Evanston, Illinois, USA
- References: <1992Nov6.063334.16263@u.washington.edu>
- Date: Sat, 7 Nov 1992 00:19:05 GMT
- Lines: 31
-
- micah@carson.u.washington.edu (Micah Anderson) writes:
-
- >How can I find out if I have new mail and when I do run my shell script?
- >I cannot use .filter, so would something like:
-
- >test -s /usr/spool/mail/$USER
- >if (status == 0) then
- >script
- >endif
-
- >would this be a good idear? (adding in a sleep and then running it again..)
-
- >any suggestions?
-
- If you are using elm, why not use newmail? If not, how about biff?
-
-
- cjw
-
- Christopher Wargaski
- Response Center
- Distributed Systems Services
- Academic Computing and Network Services
-
- c-wargaski@nwu.edu
-
- --
- Christopher J. Wargaski <-or-> Aspheric Artwork Sigh
- c-wargaski@nwu.edu; ACNS, DSS, RC
- ``The highest possible stage in moral culture is when we recognize
- that we ought to control our thoughts.'' --Charles Darwin
-