comp.lang.ada
 help / color / mirror / Atom feed
From: Emmanuel Briot <briot@act-europe.fr>
Subject: Re: retrieve command result
Date: 07 Nov 2002 10:43:14 +0100
Date: 2002-11-07T10:43:14+01:00	[thread overview]
Message-ID: <m38z05yatp.fsf@lyon.act-europe.fr> (raw)
In-Reply-To: uof92k2w0.fsf@gsfc.nasa.gov

Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov> writes:

> evangeli <evangeli@cnam.fr> writes:
> > is it possible to retrieve the result of a command in a variable.
> > i explain myself:

> There is no Standard way to do this, and I see nothing in the GNAT
> extensions for it either.


There is a package, which I think was already there with 3.14p, called
GNAT.Except which can be used to do this sort of things. It is more aimed at
interactive programs, where you want to keep sending input and receiving output
from the second process, but it might be used in the simple scenario you want
as well.
This is portable to most systems where GNAT is ported (apart from VMS I
believe), and is the package used by GVD to communicate with gdb.

Emmanuel



  reply	other threads:[~2002-11-07  9:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06 16:43 retrieve command result evangeli
2002-11-06 17:06 ` sk
2002-11-06 17:46 ` Stephen Leake
2002-11-07  9:43   ` Emmanuel Briot [this message]
2002-11-07 13:56     ` Stephen Leake
2002-11-07  1:48 ` Marc A. Criley
2002-11-07 15:46   ` evangeli
replies disabled

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