Unix Signals - Trap

Status
Not open for further replies.

kbjradmin

New Member
Messages
512
Reaction score
2
Points
0
I am writing a lock script for unix, and don't want people to be able to simply ctrl-c out of it or using a different combination, so I am trying to trap all of the common exit/quit/abort/etc. signals. However, for some reason, I can't seem to trap the ctrl-d signal.

this is the trap command i am using:
Code:
trap "" 0 1 2 3 9 15 CHLD STOP TSTP EXIT

please help.
Edit:
nevermind, i figured out the problem.
 
Last edited:
Status
Not open for further replies.
Top