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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1a7be6e64c98018a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!news.cs.univ-paris8.fr!talisker.lacave.net!lacave.net!feeder.xsnews.nl!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-Id: <2153195.1dGfl6qKBO@linux1.krischik.com> From: Martin Krischik Subject: Re: Spawn : Get the output of the called program Newsgroups: comp.lang.ada Date: Wed, 06 Apr 2005 15:34:43 +0200 References: User-Agent: KNode/0.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com Organization: Surfino Gmbh NNTP-Posting-Host: 83.169.175.19 (83.169.175.19) NNTP-Posting-Date: Wed, 06 Apr 2005 16:00:21 +0200 X-Trace: 984ca4253eb75f60c0ab619967 Xref: g2news1.google.com comp.lang.ada:10302 Date: 2005-04-06T15:34:43+02:00 List-Id: Jean-Baptiste CAMPESATO wrote: > Hello, > I want to called a programm (like the Spawn Procedure in GNAT.OS_lib) but > i wannt to get the output fo this program. No you need a special library which attaches pipes to stdin and stdout. > Do you know how can i get the output with Spawn, or another > function/procedure to do that ? AdaCL (adacl.sf.net) has got a package (AdaCL.OS.Command) which can do exactly that. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com