Wrox Home  
Search P2P Archive for: Go

  Return to Index  

python thread: KeyboardInterrupt


Message #1 by "neeraja" <neru_p@h...> on Fri, 7 Sep 2001 10:38:20
Recently I have started working on python. I want to know, when I 
execute my python server at dos environment, if I press 'ctrl+c' the 
server will be shut-down. But I want to capture that 'ctrl+c' 
(keyboardInterrupt) and test for user authentication to shut the server 
at that dos environment. Is it possible in python or not? Does python 
provide any functionality to capture ctrl+c commands?

Thanks.


  Return to Index