execute commands and return output

Fredrik Lundh fredrik at pythonware.com
Sat Sep 10 06:58:01 EDT 2005


"billiejoex" wrote:

> Moreover it doesn't work always (for exaple: try a 'dir' command).

why use os.system("dir") when Python already offers things
like os.listdir, os.walk, and glob.glob ?

</F> 






More information about the Python-list mailing list