home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14634 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  819 b 

  1. Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!gil
  2. From: gil@cse.ucsc.edu (Elmer Fudd)
  3. Newsgroups: comp.unix.questions
  4. Subject: failure by negation
  5. Message-ID: <1gdn6pINNe0d@darkstar.UCSC.EDU>
  6. Date: 12 Dec 92 21:56:41 GMT
  7. Organization: University of California, Santa Cruz (CE/CIS Boards)
  8. Lines: 24
  9. NNTP-Posting-Host: arapaho.ucsc.edu
  10.  
  11.  
  12.  
  13. hello net,
  14. the following c shell program does the opposite of what i want,
  15. it checks to see that a file "alive.n.well" exists, then it stops
  16. execution, i want it to do the same if the file doesn't exists!
  17. how do i do it?  and where do i get more info about c shell programming
  18. on line?
  19. thanks
  20. -gil
  21.  
  22. here's the program....
  23.  
  24. #! /bin/csh -f
  25. echo "hello 1"
  26. # how do i negate this?
  27. test -f alive.n.well && exit
  28. echo "hello 2"
  29. #
  30. #
  31. #  do lots of stuff here
  32. #
  33. #
  34. echo "end of program"
  35.