This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: CygwinReturnCode
- From: Jason Tishler <jason at tishler dot net>
- To: cygwin at cygwin dot com
- Date: Sat, 23 Nov 2002 10:18:24 -0500
- Subject: Re: CygwinReturnCode
- References: <F131S7vNiRS2WKhLhoG0002d88c@hotmail.com>
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/