comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Start a Windows process and get its text output
Date: Sat, 06 Feb 2010 12:42:10 -0700
Date: 2010-02-06T12:42:10-07:00	[thread overview]
Message-ID: <hkkhc7$iv3$1@tornado.tornevall.net> (raw)
In-Reply-To: <eaa3328c-e7fd-467e-b2d1-a30ed11bb330@l19g2000yqb.googlegroups.com>

Gautier write-only wrote:
> 
> Does someone have some nice open source to do that ?
> I began to cannibalize working code from AdaGIDE, but it is a bit
> messy.
> If I can save a couple of hours to make a good package out of it, it
> would be cool...

I used to do something like this to get a directory listing in Ada 95: Using 
GNAT.OS_Lib I spawned cmd and redirected the output to a file, then read the 
file from my program. Not nearly as complex as what you're after, but it worked 
for my purposes and only took a few minutes to get working.

-- 
Jeff Carter
"It's symbolic of his struggle against reality."
Monty Python's Life of Brian
78



  parent reply	other threads:[~2010-02-06 19:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-06 17:39 Start a Windows process and get its text output Gautier write-only
2010-02-06 18:12 ` Hibou57 (Yannick Duchêne)
2010-02-06 18:23 ` Pascal Obry
2010-02-06 19:21   ` Gautier write-only
2010-02-06 19:42 ` Jeffrey R. Carter [this message]
2010-02-06 21:01 ` Dmitry A. Kazakov
2010-02-07 17:54 ` Vadim Godunko
2010-02-07 19:24   ` Hibou57 (Yannick Duchêne)
2010-02-07 19:36     ` Hibou57 (Yannick Duchêne)
2010-02-07 20:35     ` Hibou57 (Yannick Duchêne)
2010-02-07 21:36     ` Dmitry A. Kazakov
replies disabled

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