How to stop a linux process

G

Glen

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.
 
S

Simon Brunning

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.

The subprocess module might be worth a look.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top