Use the "trap" shell built-in command. eg, type the following at your shell prompt:<br>
<FONT FACE=monospace><br>
trap 'echo "Ctrl-C was pressed"' 2<br>
</font><br>
Now, whenever you press Ctrl-C, the message will be echoed.<br>
<br>
WARNING: This is not specific to pressing Ctrl-C. It is specific to whatever your interrupt key is set to. Type "<FONT FACE=monospace>stty -a</font>" and see what "intr" is set to. It may be ^C, it may not, but I'm assuming yours is

<br>
<br>
You can use "trap" to check for any signal, and act accordingly. To set it permanently, put it into your .profile. It may also be inserted into a shell script that you are running.<br>
<br>
For more details, "<FONT FACE=monospace>man sh</font>" and search for "trap".<br>
<br>
HTH.