How to stop a linux process

Michael Williams mwilliams at mgreg.com
Fri Dec 9 09:11:43 EST 2005


You may check out the  http://pexpect.sourceforge.net/ module.  This  
gives you pretty good control over running processes.  It even allows  
you to "interact" with them.


Regards,
Michael


On Nov 28, 2005, at 4:00 PM, python-list-request at python.org wrote:

> From: Glen <stygian at tesco.net>
> Date: November 28, 2005 2:10:05 PM EST
> To: python-list at python.org
> Subject: How to stop a linux process
>
>
> When I used the following line to play a midi file in linux,
>
> return_value = os.system('timidity test.mid')
>
> I have encountered two problems.
> 1. The python script halts until timidity has finished.
> 2. If I had control of the script, I can't think how I would stop  
> timidity.
>
> Any advice on the 'area' of python I should be looking at would be  
> greatly
> appreciated.
>
> Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051209/b929f386/attachment.html>


More information about the Python-list mailing list