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:a6b:8243:: with SMTP id e64-v6mr1320667iod.130.1531861649915; Tue, 17 Jul 2018 14:07:29 -0700 (PDT) X-Received: by 2002:aca:c6ca:: with SMTP id w193-v6mr797091oif.1.1531861649488; Tue, 17 Jul 2018 14:07:29 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!g2-v6no1295333itf.0!news-out.google.com!l67-v6ni1141itl.0!nntp.google.com!d7-v6no1281780itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 17 Jul 2018 14:07:29 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.209.154.211; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 71.209.154.211 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: Jerry Injection-Date: Tue, 17 Jul 2018 21:07:29 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53880 Date: 2018-07-17T14:07:29-07:00 List-Id: On Tuesday, July 17, 2018 at 5:46:39 AM UTC-7, bj=C3=B6rn lundin wrote: > On 2018-07-17 03:20, Jerry wrote: > > How can I get Ada (GNAT) to run a program that has no text I/O without = launching a terminal session? Specifically, on macOS, I have the following = program. When I double-click it, it runs but first it opens Terminal.app an= d starts a session. I played with calling it from Applescript but without s= uccess. 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 > >=20 >=20 > is it supposted to be a daemon? > check launchctrl > >=20 >=20 >=20 > --=20 > -- > Bj=C3=B6rn I'm not sure exactly what is meant by a daemon but I think it is a faceless= program that runs in the background over an extended period of time. Mine = might satisfy that definition--it is faceless and runs until all of the sev= eral "delay-beep" pairs are executed, then quits. Apple's launchctrl might work but it looks very complicated to learn. Jerry