comp.lang.ada
 help / color / mirror / Atom feed
From: "A. Cervetti" <andrea.cervetti@gmail.com>
Subject: Re: Execute an OS command and capture output
Date: Tue, 14 Nov 2017 02:57:26 -0800 (PST)
Date: 2017-11-14T02:57:26-08:00	[thread overview]
Message-ID: <5e5c8ec5-018a-4d38-8018-f4fc3ce118ff@googlegroups.com> (raw)
In-Reply-To: <oucqid$him$1@gioia.aioe.org>

Il giorno lunedì 13 novembre 2017 20:08:00 UTC+1, Victor Porton ha scritto:

> I need synchronous processing of input/output pipes. That is I need just 
> provide a String variable for the input and receive a String value with the 
> 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.

  parent reply	other threads:[~2017-11-14 10:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-13 16:38 Execute an OS command and capture output Victor Porton
2017-11-13 16:41 ` Victor Porton
2017-11-13 17:41 ` Dmitry A. Kazakov
2017-11-13 18:52   ` Victor Porton
2017-11-13 20:06     ` Dmitry A. Kazakov
2017-11-13 20:16       ` Victor Porton
2017-11-13 20:34         ` Dmitry A. Kazakov
2017-11-13 21:09           ` Victor Porton
2017-11-14  9:36             ` Dmitry A. Kazakov
2017-11-13 19:07   ` Victor Porton
2017-11-13 19:22     ` Victor Porton
2017-11-13 20:17     ` Dmitry A. Kazakov
2017-11-14 10:57     ` A. Cervetti [this message]
2017-11-13 21:32   ` briot.emmanuel
2017-11-16  1:00 ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox