Interrupting script while execution

Hi,
I have a script "a.sh", when the script is running user should not be able to interrupt the script execution.If user tries I need to throw an error.

Please help in this.

Thanks
Satya

Check out the shell built-in trap. Here is a thread for it:

Ctrl-c is SIG 2.