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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.161.195 with SMTP id xu3mr12010378pab.33.1385495365870; Tue, 26 Nov 2013 11:49:25 -0800 (PST) X-Received: by 10.50.80.78 with SMTP id p14mr477579igx.6.1385495365650; Tue, 26 Nov 2013 11:49:25 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!i10no1961204pba.1!news-out.google.com!p7ni1495qat.0!nntp.google.com!dz2no7347406qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 26 Nov 2013 11:49:25 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <1150031952.347657.244910@i40g2000cwc.googlegroups.com> <78030be6-8fe4-4514-85fc-a2627507628f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2e86f26f-8fcf-4bde-b426-4bebe19e2630@googlegroups.com> Subject: Re: Is there some way of calling a system command? From: adambeneschan@gmail.com Injection-Date: Tue, 26 Nov 2013 19:49:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:17796 Date: 2013-11-26T11:49:25-08:00 List-Id: On Tuesday, November 26, 2013 10:54:37 AM UTC-8, tolkamp wrote: > Thank you for your explanation. Now it works, the extra program is starte= d.=20 >=20 > The only disadvantage is that the Ada code below the procedure System_Exa= mple is suspended untill the extra started program is terminated. Is there = a possibility that the Ada program continues while the extra program runs? You could try putting it in a task. GNAT and other compilers will cause th= e task to run in another thread (depending on the OS, I think), so it shoul= d probably work, but I won't make any guarantees. C library routines may d= o stuff that could interfere with the Ada code that handles tasking. =20 Other than that: if you're using GNAT, try one of the other suggested libra= ry routines GNAT provides. If you're using another compiler, perhaps they = provide libraries with similar functionality, or else you'll have to figure= out what OS calls will do the job and use Import pragmas to call them your= self. Ada just doesn't have a standardized mechanism for spawning other pr= ograms or commands. It looks like one was discussed in 2004 (AI95-371), bu= t it didn't get approved. -- Adam=20