Executing outside command

Gary Herron gherron at islandtraining.com
Fri Jul 12 16:37:11 EDT 2002


On Friday 12 July 2002 01:26 pm, David Noriega wrote:
> How would I have python execute a command like ogg123?
> David M Noriega

>>> import os
>>> os.system('ogg123')

If you wish to provide input to or catch output from the command, then
look at the os.popen... family of functions.

Gary Herron






More information about the Python-list mailing list