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?