how to start a program?

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Mon May 5 07:12:44 EDT 2003


gabor wrote:
> i want to start application from python,
> like i want to start 
> 'id3v2 --TCON "anime" '
> 
> how can i do that?

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("id3v2 --TCON \"anime\"").read()

> p.s2: i know this is a lamer question, but i haven't been able to find
> it :(

Where did you look?


--Irmen





More information about the Python-list mailing list