home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!gil
- From: gil@cse.ucsc.edu (Elmer Fudd)
- Newsgroups: comp.unix.questions
- Subject: failure by negation
- Message-ID: <1gdn6pINNe0d@darkstar.UCSC.EDU>
- Date: 12 Dec 92 21:56:41 GMT
- Organization: University of California, Santa Cruz (CE/CIS Boards)
- Lines: 24
- NNTP-Posting-Host: arapaho.ucsc.edu
-
-
-
- hello net,
- the following c shell program does the opposite of what i want,
- it checks to see that a file "alive.n.well" exists, then it stops
- execution, i want it to do the same if the file doesn't exists!
- how do i do it? and where do i get more info about c shell programming
- on line?
- thanks
- -gil
-
- here's the program....
-
- #! /bin/csh -f
- echo "hello 1"
- # how do i negate this?
- test -f alive.n.well && exit
- echo "hello 2"
- #
- #
- # do lots of stuff here
- #
- #
- echo "end of program"
-