| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <jason AT tishler DOT net> |
| Subject: | Re: CygwinReturnCode |
| In-reply-to: | <F131S7vNiRS2WKhLhoG0002d88c@hotmail.com> |
| To: | cygwin AT cygwin DOT com |
| Mail-followup-to: | cygwin AT cygwin DOT com |
| Message-id: | <20021123151824.GE2156@tishler.net> |
| MIME-version: | 1.0 |
| User-Agent: | Mutt/1.4i |
| References: | <F131S7vNiRS2WKhLhoG0002d88c AT hotmail DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |