comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Ada & Scripting
Date: Thu, 15 May 2003 18:47:12 +0200
Date: 2003-05-15T18:47:12+02:00	[thread overview]
Message-ID: <1226841.70Sv0M8gQ7@linux1.krischik.com> (raw)
In-Reply-To: mailman.0.1052937680.22676.comp.lang.ada@ada.eu.org

sk wrote:

> krischik@users.sourceforge.net:

>  > It is tricky since C function 'pipe' can only do one of the two.

my mistake, it should read 'popen'.
 
> The method is to use two pipes, one hooked to stdin, one to stdout
> and if you are so inclined, a third pipe for stderr.

I have some C sources for 'popen' which show how this is supposed to work.
Now I "only" have to map the function to Ada.

> 1) This is quite doable in Ada with roll-your-own bindings.

I hope so.

> 2) If you use GNAT, look at the package GNAT.Expect

Yes, quite interesting source. But I will need some time to fully understand
that source. 

> Also you might look at AdaPower for the 'popen' bindings.

I saw them. As I said 'popen' ony returns one of the pipes - so I have to
program my own version of 'popen'.

Thanks for the help.

Martin
 
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




  reply	other threads:[~2003-05-15 16:47 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10 12:07 Ada & Scripting kat-Zygfryd
2003-05-10 13:34 ` Preben Randhol
2003-05-10 19:10 ` Bobby D. Bryant
2003-05-10 20:28   ` kat-Zygfryd
2003-05-11  1:39     ` John R. Strohm
2003-05-11 10:12       ` kat-Zygfryd
2003-05-11 10:55         ` John R. Strohm
2003-05-11 11:23           ` kat-Zygfryd
2003-05-13  4:45             ` Bobby D. Bryant
2003-05-13 16:32               ` Wesley Groleau
2003-05-20 22:19               ` Randy Brukardt
2003-05-21 11:43                 ` Georg Bauhaus
2003-05-12  8:46     ` Preben Randhol
2003-05-12 12:09       ` Frank Piron
2003-05-12 14:31         ` Preben Randhol
2003-05-13  4:47         ` Bobby D. Bryant
2003-05-13 16:33 ` Martin Krischik
2003-05-14 15:22   ` Preben Randhol
2003-05-14 17:05     ` Martin Krischik
2003-05-14 18:51       ` sk
2003-05-15 16:47         ` Martin Krischik [this message]
2003-05-16 20:57           ` sk
2003-05-17  7:36             ` Martin Krischik
replies disabled

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