how to start a program?
Alex Martelli
aleax at aleax.it
Mon May 5 07:13:56 EDT 2003
<posted & mailed>
gabor wrote:
> hi,
>
>
> i want to start application from python,
> like i want to start
> 'id3v2 --TCON "anime" '
>
> how can i do that?
import os
os.system('id3v2 --TCON "anime" ')
> p.s1: i don't need the output of that program this time, but how can i
> capture it's output?
os.popen and friends.
> p.s2: i know this is a lamer question, but i haven't been able to find
> it :(
Visit the Google advanced group search:
http://groups.google.com/advanced_group_search?hl=en
Fill in just two fields on the form:
with the exact phrase start a program
Return only messages from the newsgroup comp.lang.python
Click the Google Search button
This gives 26 hits. The third one is a thread titled
"Re: os.popen() vs os.system()" and there are other such
relevant hits in the rest.
You're welcome.
Alex
More information about the Python-list
mailing list