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:
please help.Code:trap "" 0 1 2 3 9 15 CHLD STOP TSTP EXIT
Edit:
nevermind, i figured out the problem.


LinkBack URL
About LinkBacks



