key sniffer

Hi everybody,

I'll like to know how I can add in my script a key sniffer. In fact, I'll like to detect a "Ctrl + C" command...

How can do that and is it possible in shell script under AIX ?

Thanks !!!

Dimitri

If your intention will be to suspend Ctrl+C keys during execution of one script, I think that the command "trap" either the best solution.

To more information, look this :

http://www.icmc.sc.usp.br/manuals/UNIX/scrpt_scrpt2.9.3.html\#scrpt2.9.3

I hope help you !

Witt