[Tutor] Execute programs for example cdrecord from a python script?

Kent Johnson kent_johnson at skillsoft.com
Mon Nov 8 21:19:38 CET 2004

os.system() is the simplest way. If you need access to the input or output 
streams of the other program, use one of the variants of os.popen() or in 
Python 2.4 look at the new subprocess module.


At 09:07 PM 11/8/2004 +0100, Klas Marteleur wrote:
>Two quick questions.
>Is it possible to execute a program/binary(?) for example "cdrecord" from a
>python script?
>In that case how? :)
>Kind regards
>Thanks for a good list
>Tutor maillist  -  Tutor at python.org

More information about the Tutor mailing list