home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!ogicse!news.u.washington.edu!carson.u.washington.edu!micah
- From: micah@carson.u.washington.edu (Micah Anderson)
- Newsgroups: comp.unix.shell
- Subject: how to tell if command outputs or not
- Summary: how do I do this?
- Keywords: if, messages
- Message-ID: <1992Nov8.014859.2937@u.washington.edu>
- Date: 8 Nov 92 01:48:59 GMT
- Article-I.D.: u.1992Nov8.014859.2937
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- Lines: 11
-
- if messages /usr/spool/mail/$USER
- then echo "yes"
- else echo "no"
- fi
- exit 0
-
- what I want that to do is if the command messages /usr/spool/mail/$USER
- outputs anything then echo yes, but if it doesnt output anything,
- then output no...
-
- what would the syntax for this be?
-