os.system and command output

A.M alanalan at newsgroup.nospam
Wed Jun 7 22:05:10 CEST 2006


> Try:
>
> s = os.popen("DIR").read()
>
Thanks Steve.

Is there anyway I can get the exit code (what os.system returns) from
os.popen? 





More information about the Python-list mailing list