From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: execute external shell program and process the output line by line
Date: Thu, 17 Oct 2019 18:17:47 +0200
Date: 2019-10-17T18:17:47+02:00 [thread overview]
Message-ID: <qoa47a$5cp$1@gioia.aioe.org> (raw)
In-Reply-To: 69956c86-273a-40c4-b1d8-dc5c7a8e960f@googlegroups.com
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.
See:
http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#10
with callbacks for each input/output lines:
http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#10.1
with text buffers to standard input/outputs:
http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#10.1
The sample code are Test_Gtk_Asynchronous_Spawn and Test_Gtk_Spawn.
P.S. It is a complicated issue you better avoid if you can.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2019-10-17 16:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-17 12:25 execute external shell program and process the output line by line devosalain71
2019-10-17 15:34 ` Dennis Lee Bieber
2019-10-18 7:43 ` Simon Wright
2019-10-17 16:17 ` Dmitry A. Kazakov [this message]
2019-10-17 20:31 ` Per Sandberg
2019-10-18 14:26 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox