From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Running external program, getting output
Date: Sun, 22 Jun 2003 19:20:53 +0200
Date: 2003-06-22T19:20:53+02:00 [thread overview]
Message-ID: <5972474.ITsLBhBNCF@linux1.krischik.com> (raw)
In-Reply-To: m2d6h6jpnn.fsf@maskin.flamestrike.no-ip.org
Jarle Thorsen wrote:
> As far as I have gathered the best way of (non OS-specific) running an
> external program from Ada is using the Spawn procedure in g-os_lib,
> correct ?
>
> But how do I get the output from the command that I run? Lets say that I
> want to run "ls" for example.....
AdaCL has a support class do just this. See TestCommand (test 3) on how to
do it:
http://adacl.sourceforge.net/html/TestCommand-Main__adb.htm
You find AdaCL at:
http://www.ada.krischik.com
Also, you can use the GNAT.Expect package.
With Regads
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2003-06-22 17:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-22 11:51 Running external program, getting output Jarle Thorsen
2003-06-22 13:07 ` Ludovic Brenta
2003-06-22 13:43 ` sk
2003-06-22 15:39 ` Jarle Thorsen
2003-06-22 19:21 ` David C. Hoos
2003-06-22 19:25 ` sk
2003-06-22 17:20 ` Martin Krischik [this message]
2003-06-25 20:39 ` Jarle Thorsen
2003-06-26 2:04 ` sk
2003-06-27 17:47 ` Warren W. Gay VE3WWG
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox