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, [EMAIL PROTECTED] wrote:

From: Glen <[EMAIL PROTECTED]>

Date: November 28, 2005 2:10:05 PM EST

To: python-list@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.


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to