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 2002:a24:160f:: with SMTP id a15-v6mr1195088ita.7.1531851699471; Tue, 17 Jul 2018 11:21:39 -0700 (PDT) X-Received: by 2002:aca:75c9:: with SMTP id q192-v6mr676833oic.3.1531851699186; Tue, 17 Jul 2018 11:21:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder4.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!d7-v6no1093594itj.0!news-out.google.com!n194-v6ni968itg.0!nntp.google.com!g2-v6no1105833itf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 17 Jul 2018 11:21:38 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.113.16.86; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 76.113.16.86 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to run a GNAT program without starting a terminal session From: Shark8 Injection-Date: Tue, 17 Jul 2018 18:21:39 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53877 Date: 2018-07-17T11:21:38-07:00 List-Id: On Monday, July 16, 2018 at 7:20:50 PM UTC-6, Jerry wrote: > How can I get Ada (GNAT) to run a program that has no text I/O without la= unching a terminal session? Specifically, on macOS, I have the following pr= ogram. When I double-click it, it runs but first it opens Terminal.app and = starts a session. I played with calling it from Applescript but without suc= cess. Can I make a bash file that doesn't start a terminal session? >=20 >=20 > with Ada.Calendar; use Ada.Calendar; > with Common; -- Contains "Beep". >=20 > procedure Run is > begin > Delay 4.0; > Common.Beep(1); > end Run; >=20 >=20 > Jerry Since you're talking about GNAT in particular you can use GNAT's System.OS_= Lib package as detailed in the last example here: https://rosettacode.org/w= iki/Execute_a_system_command#Ada