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

Kent

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



More information about the Tutor mailing list