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 :
> On Jun 21, 10:41 am, shanti bhushan wrote:
>> Hi,
>> I w
On Jun 21, 10:41 am, shanti bhushan 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 time
>
> def invoke
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():
s1ret=subprocess.Popen(r'C:\WINDOWS\system32\cm