CygwinReturnCode
Jason Tishler
jason@tishler.net
Sat Nov 23 12:14:00 GMT 2002
On Sat, Nov 23, 2002 at 08:42:47AM +0000, g frances wrote:
> returncode = os.system(r' grep SUCCESS c:/temp/out.txt')
> if returncode == 1:
> returncode == 1
The above code is suspect.
BTW, I get the following:
$ python -c 'import sys; sys.exit(0)'; echo $?
0
$ python -c 'import sys; sys.exit(1)'; echo $?
1
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list