home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.3b1
- Path: sparky!uunet!nwnexus!seanews!eskimo!ape
- From: ape@eskimo.com (Mark Newland)
- Subject: Shell program problem
- Message-ID: <1992Dec24.102302.19922@eskimo.com>
- Organization: -> ESKIMO NORTH (206) For-Ever <-
- Date: Thu, 24 Dec 1992 10:23:02 GMT
- Lines: 25
-
-
- I love my 3b1 except for the fact thats it's too small. I only have 1Meg RAM
- and a puny 20Meg HD. I know, I know, buy a bigger drive! Until then I have
- most of my programs on floppys. I am willing to run off floppy but there is
- the hassle of mounting and unmounting the drive, etc. I figured I could write
- a shell program to handle this for me. As a test I wrote the following shell
- script. Everything works just fine except that after the program is completed,
- it does not unmount the floppy. Is there a way I can have the floppy unmount
- itself after the program is ran? Should I look closer at the fork command?
- I suspect that the termination of the $PROGRAM also terminates my shell
- program itself.
-
-
- ----------------------
- foo.sh
- ----------------------
- DISK_LABEL = bar(1)
- PROGRAM = foo
-
- message -i "Enter $DISK_LABEL disk\n\nPress ENTER to continue"
-
- mount /dev/fp021 /mnt
- /mnt/$PROGRAM
- umount /dev/fp021
-
-