On Oct 23, 7:44 pm, [email protected] wrote: > exp: > os.system('ls -al') > #I like to catch return value after this command. 0 or 1,2,3.... > does python support to get "$?"? > then I can use something like: > If $?==0: > ........ > ................ > TIA > david
So for what I do is:
r_number =os.system('ls -al')
if r_number == 0
.........
.........
any other way?
--
http://mail.python.org/mailman/listinfo/python-list
