Re: Terminating python script easily

2009-10-22 Thread Gabriel Genellina
En Thu, 22 Oct 2009 10:03:51 -0300, Bahadir Balban escribió: On Thu, Oct 22, 2009 at 4:01 PM, Jean-Michel Pichavant wrote: Balban wrote: Often, if I want to terminate the script prematurely, I press ctrl-c, but I have to do this many times before I can kill the script for good. I was wonderi

Re: Terminating python script easily

2009-10-22 Thread Gabriel Genellina
En Thu, 22 Oct 2009 10:03:51 -0300, Bahadir Balban escribió: On Thu, Oct 22, 2009 at 4:01 PM, Jean-Michel Pichavant wrote: Balban wrote: Often, if I want to terminate the script prematurely, I press ctrl-c, but I have to do this many times before I can kill the script for good. I was wonderi

Re: Terminating python script easily

2009-10-22 Thread Cameron Simpson
On 22Oct2009 16:03, Bahadir Balban wrote: | On Thu, Oct 22, 2009 at 4:01 PM, Jean-Michel Pichavant | wrote: | > Balban wrote: | >> I have a python build script that calls various commands, some using | >> os.system(). | >> | >> Often, if I want to terminate the script prematurely, I press ctrl-c,

Re: Terminating python script easily

2009-10-22 Thread Bahadir Balban
On Thu, Oct 22, 2009 at 4:01 PM, Jean-Michel Pichavant wrote: > Balban wrote: >> >> Hi, >> >> I have a python build script that calls various commands, some using >> os.system(). >> >> Often, if I want to terminate the script prematurely, I press ctrl-c, >> but I have to do this many times before

Re: Terminating python script easily

2009-10-22 Thread Jean-Michel Pichavant
Balban wrote: Hi, I have a python build script that calls various commands, some using os.system(). Often, if I want to terminate the script prematurely, I press ctrl-c, but I have to do this many times before I can kill the script for good. I was wondering is there a way that I define a signal

Re: Terminating python script easily

2009-10-22 Thread Benjamin Kaplan
On Thu, Oct 22, 2009 at 8:46 AM, Balban wrote: > Hi, > > I have a python build script that calls various commands, some using > os.system(). > > Often, if I want to terminate the script prematurely, I press ctrl-c, > but I have to do this many times before I can kill the script for > good. I was w

Terminating python script easily

2009-10-22 Thread Balban
Hi, I have a python build script that calls various commands, some using os.system(). Often, if I want to terminate the script prematurely, I press ctrl-c, but I have to do this many times before I can kill the script for good. I was wondering is there a way that I define a signal handler and kil