home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!hal.com!olivea!charnel!rat!usc!wupost!emory!ogicse!news.u.washington.edu!carson.u.washington.edu!micah
- From: micah@carson.u.washington.edu (Micah Anderson)
- Newsgroups: comp.unix.shell
- Subject: New mail?
- Summary: How to find out if I have new mail?
- Keywords: mail, csh
- Message-ID: <1992Nov6.063334.16263@u.washington.edu>
- Date: 6 Nov 92 06:33:34 GMT
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- Lines: 11
-
- 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?
-