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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx06.am4.POSTED!not-for-mail Subject: Re: execute external shell program and process the output line by line Newsgroups: comp.lang.ada References: <69956c86-273a-40c4-b1d8-dc5c7a8e960f@googlegroups.com> From: Per Sandberg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <69956c86-273a-40c4-b1d8-dc5c7a8e960f@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@usenet.se NNTP-Posting-Date: Thu, 17 Oct 2019 20:31:11 UTC Organization: usenet.se Date: Thu, 17 Oct 2019 22:31:10 +0200 X-Received-Bytes: 1199 X-Received-Body-CRC: 2252367526 Xref: reader01.eternal-september.org comp.lang.ada:57317 Date: 2019-10-17T22:31:10+02:00 List-Id: Why not use GNAT.Expect.Get_Command_Output ? Since its already there. /P On 2019-10-17 14:25, devosalain71@gmail.com wrote: > I need the call a process like "ls", > And process the output line by line. > So it is not sufficient if i have the return code success or error. > Thanks, >