home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / 3b1 / 4115 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  1015 b 

  1. Path: sparky!uunet!spool.mu.edu!agate!ames!purdue!news.cs.indiana.edu!lynx!unmvax!bbx!yenta!dt
  2. From: dt@yenta.alb.nm.us (David B. Thomas)
  3. Newsgroups: comp.sys.3b1
  4. Subject: Re: Shell program problem
  5. Message-ID: <1992Dec26.023658.23589@yenta.alb.nm.us>
  6. Date: 26 Dec 92 02:36:58 GMT
  7. References: <1992Dec24.102302.19922@eskimo.com>
  8. Organization: yenta unix pc, rio rancho, nm
  9. Lines: 22
  10.  
  11. ape@eskimo.com (Mark Newland) writes:
  12.  
  13. >mount /dev/fp021 /mnt
  14. >/mnt/$PROGRAM
  15. >umount /dev/fp021
  16.  
  17. >[problem: does not unmount after running program]
  18.  
  19. I could be totally off here, but if you were to type the interrupt key at
  20. any time during $PROGRAM, the script would break.  $PROGRAM might still
  21. finish (if it catches the interrupt), but the rest of your parent script
  22. won't run.  You could use echo statements to verify this.
  23.  
  24. Then, if it turns out that that's the problem, just add
  25.     trap "" 2
  26. to the beginning, and
  27.     trap 2
  28. to the end.  That way, you're ignoring interrupts.
  29.  
  30.                     little david
  31. -- 
  32. I'm a poet and I'm unaware of it.
  33.