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.36.19.193 with SMTP id 184mr5741119itz.48.1510657046572; Tue, 14 Nov 2017 02:57:26 -0800 (PST) X-Received: by 10.157.1.175 with SMTP id e44mr412342ote.1.1510657046371; Tue, 14 Nov 2017 02:57:26 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!l196no3155364itl.0!news-out.google.com!193ni2904iti.0!nntp.google.com!m191no2578461itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 14 Nov 2017 02:57:26 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=212.45.154.1; posting-account=fEeJQAoAAABLcKAvkveW1ca-ReZJoaMK NNTP-Posting-Host: 212.45.154.1 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5e5c8ec5-018a-4d38-8018-f4fc3ce118ff@googlegroups.com> Subject: Re: Execute an OS command and capture output From: "A. Cervetti" Injection-Date: Tue, 14 Nov 2017 10:57:26 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 1016562003 X-Received-Bytes: 1843 Xref: feeder.eternal-september.org comp.lang.ada:48880 Date: 2017-11-14T02:57:26-08:00 List-Id: Il giorno luned=C3=AC 13 novembre 2017 20:08:00 UTC+1, Victor Porton ha scr= itto: > I need synchronous processing of input/output pipes. That is I need just= =20 > provide a String variable for the input and receive a String value with t= he=20 > output after the command ends. See the example http://rosettacode.org/wiki/Get_system_command_output#Ada It uses GNAT.Expect.Get_Command_Output that does exactly what you need. You have just to define a String for the Input parameter to the Get_Command= _Output function. A.