Click to See Complete Forum and Search --> : shell script questions


dudplus
10-16-2002, 01:54 PM
Im writing a script that cannot be aborted by users.
I´ve done something like this
trap "exit" 2 3
But CTRL+D or CTRL+Z stops the script anyway.
How can I trap all stopping signals to my script?
Thanks in advance.

uptimenotifier
10-16-2002, 02:03 PM
If you are using GNU BASH then

trap -l

will show the signals responded to.

There is no point in trapping SIGKILL

dudplus
10-16-2002, 02:15 PM
Thanks.
trap -l did it.
Im not "trapping" sigkill.