simple: how to execute command?

Matthew Dixon Cowles matt at mondoinfo.com
Sun Sep 3 19:09:45 EDT 2000


On 3 Sep 2000 22:49:38 GMT, Jacek Pop³awski <jp at ulgo.koti.com.pl>
wrote:
> How to execute external command in python application? But I want
> execute and back to main...

Jacek,
You want

os.system(command)

or

f=os.popen(command)

if you want to read the command's output.

Regards,
Matt



More information about the Python-list mailing list