From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: How to exit an Ada program with (unix shell) error code? Reply-To: anon@anon.org (anon) References: <49ba30c9-a1e6-4346-8618-d256f87ac301@s31g2000vbp.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Mon, 04 May 2009 16:09:01 GMT NNTP-Posting-Host: 12.64.240.245 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1241453341 12.64.240.245 (Mon, 04 May 2009 16:09:01 GMT) NNTP-Posting-Date: Mon, 04 May 2009 16:09:01 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:5682 Date: 2009-05-04T16:09:01+00:00 List-Id: -- -- Besides the Ada.Command_Line you can just use functions for -- the instead of procedures for your nain program. This design is -- great for application where Command_Line is not used. -- function work return Integer is begin return ( 0 ) ; -- no error status code end work ; In <49ba30c9-a1e6-4346-8618-d256f87ac301@s31g2000vbp.googlegroups.com>, reinkor writes: >I want to use Ada programs within unix/linux makefiles and shell >scripts. >Then these programs must sometimes exit with an exit code (error >status) >so execution of the Makefile/scripts halts. > >How I do this ? > >reinert