Strange return value from os.system(...) call

David Scott Williams xiarcel at
Wed Oct 13 05:43:53 CEST 2004

I have a shell script that exits out with either a 0 or 1...and am 
experiencing a strange phenomenon...

print "somevalue:"+str(somevalue)

If my script exits with 0, somevalue is 0
...if it exits with 1, somevalue is 256


"I drank what?!" -Socrates

More information about the Python-list mailing list