Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; 'subject:Python': 0.05; '"""': 0.05; 'command-line': 0.09; 'integers': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sat,': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'url:documentation': 0.16; 'odd': 0.17; 'windows': 0.19; 'feb': 0.19; 'translate': 0.20; 'error.': 0.21; 'skip:% 10': 0.22; 'apps': 0.23; '(which': 0.26; 'header:X-Complaints-To:1': 0.28; '-0700,': 0.29; 'implies': 0.29; 'error': 0.30; 'code': 0.31; 'message.': 0.33; 'messages,': 0.33; 'url:home': 0.33; 'to:addr :python-list': 0.33; 'received:org': 0.36; 'michael': 0.36; 'charset:us-ascii': 0.36; 'operating': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'success,': 0.62; 'success': 0.63; 'decided': 0.65; 'completion': 0.78; '2013': 0.84; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Python Newbie Date: Sun, 24 Feb 2013 12:37:03 -0500 Organization: > Bestiaria Support Staff < References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <8eadd52c-d533-4333-8c7f-7bf3a6d7b046@googlegroups.com> <9p1ii899tkalvfd1cl7sneoqa9t1cqh4oj@invalid.netcom.com> <5129482F.3080402@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-219-236.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361727431 news.xs4all.nl 6954 [2001:888:2000:d::a6]:46771 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39760 On Sat, 23 Feb 2013 15:52:31 -0700, Michael Torrie declaimed the following in gmane.comp.python.general: > > All apps that return an error code to the operating system return 0 for > success, any other value for error. All command-line utilities work > this way, all shells, etc. Even Windows command-line apps work this way > (errorlevel is what they call it). Decided to look up the VAX/VMS scheme... """ If you know the condition code for a message, you can use F$MESSAGE to translate the code to its associated message. For example: $ WRITE SYS$OUTPUT F$MESSAGE(%X00000001) %SYSTEM-S-NORMAL, normal successful completion """ VMS used a status of "1" for normal success (which implies that all the odd integers were success/info messages, even integers would be warning/error/fatal. http://h71000.www7.hp.com/doc/73final/documentation/pdf/ovms_msg_ref_al.pdf -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/