syntax
trap "command to run when signal trapped" "list of signals"
trap "" signals # Will trap the signals you define but not allow them to affect your script.
you can get a list of signals by typing kill -l on the command line. Note: You cannot trap signal 9. Your "command to run" can be a function if you so choose.