Re: start and kill process by command promt

2010-06-21 Thread shanti bhushan
On Jun 21, 10:41 am, shanti bhushan ershantibhus...@gmail.com wrote: Hi, I want to invoke local wen server named mogoose, and kill it after some time by python script. Then i want to change the argument and invoke it again. I am able to do this with below code. import subprocess import

Re: start and kill process by command promt

2010-06-21 Thread Giampaolo Rodolà
There's no need to use taskill.exe; keep a reference of the subprocess.Popen() object around and use its kill() method instead. --- Giampaolo http://code.google.com/p/pyftpdlib http://code.google.com/p/psutil 2010/6/21 shanti bhushan ershantibhus...@gmail.com: On Jun 21, 10:41 am, shanti

start and kill process by command promt

2010-06-20 Thread shanti bhushan
Hi, I want to invoke local wen server named mogoose, and kill it after some time by python script. Then i want to change the argument and invoke it again. I am able to do this with below code. import subprocess import time def invoke_server1():