In python (on a Linux system), I\'m launching a command using os.system() and retrieving the return code. If that return code is different from 0, I would like to m
os.system()
Works for me (CentOS 5.5, Python 2.6.5):
$ python >>> import sys >>> sys.exit(245) $ echo $? 245