Re: [OT] Prevent keyboard interrupt (C / Python)
El Sat, Mar 13, 2004 at 04:10:20PM +0100, Andreas Tille escribió:
> sorry - this is not obviousely Debian related but I guess somebody
> can quickly help me here.
> 1. How can I prevent that a C-program (console based) can be
> interupted by pressing ^C?
man 2 signal
> 2. How can I prevent that a Python script can be interupted by
> pressing ^C?
> 3. How can I prevent a bash script can be interupted by pressing ^C?
man bash, lookup for "trap"
Have fun!! ..
// Raúl A. Betancort Santana /> A Dream is an answer to __ \\
// <firstname.lastname@example.org> // question that we don't know (oo) \\
// Dimensión Virtual S.L. // how to ask. / \/ \ //
\> A Linux Solution Provider </ `V__V' </