Hi All,
Is interrupt handling possible in k shell?
Say if the user press CTRL-C or CTRl-D,I want to perform a particular action before terminating?
Thnaks!
Hi All,
Is interrupt handling possible in k shell?
Say if the user press CTRL-C or CTRl-D,I want to perform a particular action before terminating?
Thnaks!
You can use the trap command, read the man page.
Regards
Thanks a mil!
I got the solution
trap 'action' INT to handle CTRL-C:b: