Use the following line in the beginning of your shell script to disable traps like ctrl c and ctrl z in your shell script.

trap “” 2 20