home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!nwnexus!Celestial.COM!ray
- From: ray@Celestial.COM (Ray Jones)
- Subject: Re: REALLY trapping INT
- Organization: Celestial Software, Mercer Island, WA
- Date: Sat, 12 Dec 1992 01:17:57 GMT
- Message-ID: <1992Dec12.011757.10515@Celestial.COM>
- References: <ByvExM.3Hv@techbook.com>
- Lines: 25
-
- In <ByvExM.3Hv@techbook.com> jamesd@techbook.com (James Deibele) writes:
-
- >I've got some newbies that I'd like to put into a menu. No problem,
- >I'll write a shell program and use that as their login shell. They can
- >still use all the UNIX commands, but I can show them what to do on
- >different menu pages.
-
- >Hmmm. ^C kills the program they're running all right, but it also kills
- >the menu shell. Dip into the manual. No problem. I'll just trap INT
- >like so:
-
- [..stuff deleted...]
-
- >So: is there a 100% guaranteed way of turning off ^C while running a
- >shell program while leaving it intact inside other programs?
-
- I don't know about a 100% guarantee but...
- Try using stty to disable ^C at the beginning of your script, enable it just
- before each application is run and then disable it when comming back to the
- script.
- --
- INTERNET: ray@Celestial.COM Ray A. Jones; Celestial Software
- UUCP: ...!thebes!camco!ray 6641 East Mercer Way
- uunet!camco!ray Mercer Island, WA 98040; (206) 947-5591
- The probability of one or more spelling errors in this missive approaches
-