![]() |
|
|
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 |
| Runaway SIGALRM signal handler | stewartw | High Level Programming | 8 | 04-11-2008 01:13 AM |
| signal handler problems | blowtorch | High Level Programming | 4 | 08-26-2007 09:14 AM |
| signal script? | mpang_ | Shell Programming and Scripting | 1 | 07-18-2006 02:08 PM |
| signal handling in shell script | Raom | UNIX for Advanced & Expert Users | 4 | 12-08-2005 06:55 AM |
| signal handler for SIGCHLD | jens | High Level Programming | 3 | 07-02-2005 01:05 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
shell script signal handler
AIX 4.3.3
I am trying to write a signal handler into a ksh shell script. I would like to capture the SIGTERM, SIGINT, and the SIGTSTP signals, print out a message to the terminal, and continue executing the script. I have found a way to block the signals: #! /bin/ksh SIGTERM=15 SIGINT=2 SIGTSTP=18 trap "" $SIGINT $SIGTERM $SIGTSTP . . . . Is it possible to capture the signal, print out a message, and continue executing the shell script from where it left off? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|