![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Catching ctrl-C or ctrl-D | sendhilmani123 | Shell Programming and Scripting | 2 | 05-02-2006 06:02 PM |
| how to enable Ctrl + C in ksh | dradhzn | Shell Programming and Scripting | 0 | 05-01-2006 11:32 PM |
| Disable ctrl-c,ctrl-d,ctrl-d in ksh script | wtofu | AIX | 6 | 06-29-2005 05:41 PM |
| my ctrl+c doesn't work | yankee428 | UNIX for Dummies Questions & Answers | 3 | 06-02-2005 02:35 PM |
| Script ctrl+c | newtounix | UNIX for Dummies Questions & Answers | 1 | 03-19-2001 05:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Ctrl-C signal propagation
Hello
I have a master startup script (let's call it myScript) that displays a menu from which the user can start/stop several instances of a server. When I issue the start command for one of the servers from the menu and then exit myScript through the provided mechanism (enter "q" in this case), the server stays up and running. If instead of "q" I press Ctrl-C, both myScript and the server terminate. I tried trapping INT in myScript with the null handler but that didn't work. myScript was not terminated but the server was. I am under the impression that somehow the INT signal is propagated to the server. Is there any way to prevent this from happening? Thanks, Boz PS: the script runs in ksh. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|