[Tutor] os.sys

Lawrence Shafer detroit371 at gmail.com
Sun Oct 28 17:44:13 CET 2007


Why doesn't this fill otp with the output of ls?? (I know python has 
it's own file tools, I'm just playing around ;)

import os
cmd="""ls"""
otp=os.system(cmd)
print otp


More information about the Tutor mailing list