comp.lang.ada
 help / color / mirror / Atom feed
From: "Condic, Marin D." <condicma@PWFL.COM>
Subject: Spawning subprocesses with GNAT
Date: 1998/10/08
Date: 1998-10-08T00:00:00+00:00	[thread overview]
Message-ID: <F3740247C2BED111A0AE00805FEA9C92017FFD2D@pwflml02.pwfl.com> (raw)

O.K. So a little bit of toying around with GNAT (3.10p) on a PC has proven
that it has a better (read "working") method of spawning a child process
than the Win32ada interface seems to have. (The function CreateProcess is
available, but no matter how I juggle around parameters, it seems to not
want to work.)

The package: GNAT.OS_Lib has a routine called: function Non_Blocking_Spawn
which successfully gets a child process running. This has advantages for me
in that I have to support my tool on both a Sun and a PC and with the GNAT
supplied package there is at least a reasonable chance that the interface
will be the same for both the PC and the SUN. The down side is this: I would
really like my sub-process to fire up a new window so that if it writes any
data out, it will not be interleaved with the output of the parent process.
I would also like a means of communicating with this sub-process. It is not
clear how to do this from the GNAT.OS_Lib package spec alone. (Unless you
can use the various file subprograms to set up a pipeline between the two?
Any chance that this would be semi-portable?)

Has anybody had any experience playing around with these operations which
might be useful?

MDC

Marin D. Condic
Real Time & Embedded Systems
United Technologies, Pratt & Whitney
Government Engines & Space Propulsion
M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600
Ph: 561.796.8997         Fx: 561.796.4669

"Today is the first day of the rest of your solitary, poor, nasty brutish,
and short existence on this planet"
       -- "Life In Hell"




             reply	other threads:[~1998-10-08  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-08  0:00 Condic, Marin D. [this message]
1998-10-14  0:00 ` Spawning subprocesses with GNAT Jerry van Dijk
replies disabled

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