os.system and command output

A.M alanalan at newsgroup.nospam
Wed Jun 7 16:05:10 EDT 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