In all three cases you want to ignore SIGINT. > 1. How can I prevent that a C-program (console based) can be signal(SIGINT,SIG_IGN); > interupted by pressing ^C? > 2. How can I prevent that a Python script can be interupted by > pressing ^C? import signal signal.signal(signal.SIGINT, signal.SIG_IGN) > 3. How can I prevent a bash script can be interupted by pressing ^C? trap "" INT