Re: How to close a program I execute with subprocess.Popen?

2007-07-05 Thread jitudon
On Jun 29, 6:36 pm, [EMAIL PROTECTED] wrote: I'm writing a program which has to execute a command, get its output and show it on a treeview. This command runs for a very long time. I want to end the execution of the command when the user closes my application. Right now I'm using an object

Re: How to close a program I execute with subprocess.Popen?

2007-07-01 Thread Nick Craig-Wood
A.T.Hofkamp [EMAIL PROTECTED] wrote: In principle, you should only kill your own child processes, your child process should handle its own childs (your grant child processes). SIGTERM is one way. Another solution often adopted is to close the stdin of the child. That is a good idea.

How to close a program I execute with subprocess.Popen?

2007-06-29 Thread revenant81
I'm writing a program which has to execute a command, get its output and show it on a treeview. This command runs for a very long time. I want to end the execution of the command when the user closes my application. Right now I'm using an object my_child of type subprocess.Popen to execute the

Re: How to close a program I execute with subprocess.Popen?

2007-06-29 Thread A.T.Hofkamp
On 2007-06-29, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I want to end the execution of the command when the user closes my application. Right now I'm using an object my_child of type subprocess.Popen to execute the command, inside a thread with an infinite loop where we constantly ask for