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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: How to run a GNAT program without starting a terminal session Date: Tue, 17 Jul 2018 14:46:38 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 17 Jul 2018 12:46:38 -0000 (UTC) Injection-Info: h2725194.stratoserver.net; posting-host="b99819fca94dfdae4b27e6b893a987fc"; logging-data="13360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AttpAcyfv8vQNHLvB0Kzu" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:1aJsQrTUGAcHOJpeI9eZFUMJ2G4= In-Reply-To: Xref: reader02.eternal-september.org comp.lang.ada:53872 Date: 2018-07-17T14:46:38+02:00 List-Id: 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 and starts a session. I played with calling it from Applescript but without success. Can I make a bash file that doesn't start a terminal session? > > > with Ada.Calendar; use Ada.Calendar; > with Common; -- Contains "Beep". > > procedure Run is > begin > Delay 4.0; > Common.Beep(1); > end Run; > > > Jerry > is it supposted to be a daemon? check launchctrl -- -- Björn