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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,34b29f7884ececc8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-16 08:19:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada & Scripting Date: Thu, 15 May 2003 18:47:12 +0200 Organization: AdaCL Message-ID: <1226841.70Sv0M8gQ7@linux1.krischik.com> References: <1352155.Gs21sEmXl2@linux1.krischik.com> <1419124.iFzRYCrhqu@linux1.krischik.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1053098222 03 29751 iH7+E3QXSvAoS6 030516 15:17:02 X-Complaints-To: abuse@t-online.com X-ID: EGUGsQZSwet2J+Ju87okRxYdd9xe6T2h6BM8XhYf74Lt7OdUOH-gZW User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:37393 Date: 2003-05-15T18:47:12+02:00 List-Id: 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