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.107.56.198 with SMTP id f189mr14065266ioa.120.1510608741614; Mon, 13 Nov 2017 13:32:21 -0800 (PST) X-Received: by 10.157.5.211 with SMTP id 77mr189878otd.0.1510608741304; Mon, 13 Nov 2017 13:32:21 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer02.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!m191no2145205itg.0!news-out.google.com!193ni2289iti.0!nntp.google.com!m191no2145203itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 13 Nov 2017 13:32:21 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=176.130.29.212; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 176.130.29.212 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Execute an OS command and capture output From: briot.emmanuel@gmail.com Injection-Date: Mon, 13 Nov 2017 21:32:21 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 3055685705 X-Received-Bytes: 1579 Xref: feeder.eternal-september.org comp.lang.ada:48871 Date: 2017-11-13T13:32:21-08:00 List-Id: > 1. GNAT's System.OS_Lib.Spawn, System.OS_Lib.Non_Blocking_Spawn. > > 2. A more comfortable method would be to use GTK bindings (GLib actually): > > http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#10 In addition, GNAT.Expect is meant for exactly this purpose. The list is 1 will not let you input data interactively to a running process.