Posix return or exit
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Wed Oct 5 12:50:09 EDT 2005
M.N.A.Smadi enlightened us with:
> my script must return codes which are based on the POSIX spec of
> returning a positive value. A work perl version of my code uses
> exit(code_num).
Use sys.exit(code_num).
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
More information about the Python-list
mailing list