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