Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 23 Nov 2002 10:18:24 -0500 From: Jason Tishler Subject: Re: CygwinReturnCode In-reply-to: To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20021123151824.GE2156@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i References: 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/