[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Prevent keyboard interrupt (C / Python)



El Sat, Mar 13, 2004 at 04:10:20PM +0100, Andreas Tille escribió:
> Hi,
> 
> 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?

 pydoc signal

>   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      __   \\       
 // <rabs@dimension-virtual.com> // question that we don't know  (oo)   \\      
// Dimensión Virtual S.L.       //  how to ask.                 / \/ \  //      
\> A Linux Solution Provider   </                               `V__V' </       



Reply to: