subprocess kill
Mike Driscoll
kyosohma at gmail.com
Fri Dec 4 17:23:34 EST 2009
On Dec 4, 3:50 pm, luca72 <lucabe... at libero.it> wrote:
> Hello i'm using subprocess in this way:
> self.luca = subprocess.Popen(['/usr/bin/
> dvbtune'+frase_sint],shell=True, stdout=self.f_s_l,stderr=self.f_s_e )
>
> then i kill:
> self.luca.Kill()
>
> but the process is still active and the file self.f_s_l increase it
> size because the process is not killed.
>
> How i can kill the process?
> Regards
>
> Luca
See http://lmgtfy.com/?q=python+kill+subprocess+linux
When I do that on my machine, the 2nd result has the answer:
http://stackoverflow.com/questions/1064335/in-python-2-5-how-do-i-kill-a-subprocess
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
More information about the Python-list
mailing list