comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: running an exe from gnat
Date: 1997/03/17
Date: 1997-03-17T00:00:00+00:00	[thread overview]
Message-ID: <dewar.858617836@merv> (raw)
In-Reply-To: 332D3BD8.1AC5@ny.essd.northgrum.com


<<I am running gnat for windows nt on my pentium and I need to call an exe
program.  How do you do that in Ada?

Mindy Matusewicz>>

There is no standard way of doing this that is portable (indeed even the
notion of an exe file is obviously system dependent).

However, look in GNAT.OS_Lib (in file g-os_lib.ads.

You will find some useful functions there (such as Spawn,
Non_Blocking_Spawn, and Wait_Process) that will allow you to
do this in a manner that is at least portable across GNAT
compilers.

In general there is quite a bit of useful stuff in the GNAt hierarchy,
and we add to it all the time, so be sure to check it out!





  parent reply	other threads:[~1997-03-17  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-17  0:00 running an exe from gnat Mindy Matusewicz
1997-03-17  0:00 ` Samuel Tardieu
1997-03-17  0:00 ` Robert Dewar [this message]
1997-03-18  0:00 ` Gautier
replies disabled

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