comp.lang.ada
 help / color / mirror / Atom feed
* executing a file from within a program
@ 2002-03-22 14:43 Fraz
  2002-03-22 15:28 ` Ehud Lamm
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Fraz @ 2002-03-22 14:43 UTC (permalink / raw)


Is there any ada command that will allow me to launch another exe file?

Fraz





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: executing a file from within a program
  2002-03-22 14:43 Fraz
@ 2002-03-22 15:28 ` Ehud Lamm
  2002-03-22 16:09   ` Fraz
  2002-03-22 16:02 ` sk
  2002-03-22 17:41 ` Pascal Obry
  2 siblings, 1 reply; 7+ messages in thread
From: Ehud Lamm @ 2002-03-22 15:28 UTC (permalink / raw)


"Fraz" <fraz@totalise.co.uk> wrote in message
news:QqHm8.8403$eG.503335@news2-win.server.ntlworld.com...
> Is there any ada command that will allow me to launch another exe file?
>
> Fraz
>

It depends on the operating system. On Windows you can do this by pragma
import- ing WinExec, for example.

Ehud Lamm





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: executing a file from within a program
  2002-03-22 14:43 Fraz
  2002-03-22 15:28 ` Ehud Lamm
@ 2002-03-22 16:02 ` sk
  2002-03-22 17:41 ` Pascal Obry
  2 siblings, 0 replies; 7+ messages in thread
From: sk @ 2002-03-22 16:02 UTC (permalink / raw)


Hi,

If you use Gnat, look at the package "Gnat.OS_Lib"
and the spawn functions.

-- 
-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
 k i e k c c m
-------------------------------------



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: executing a file from within a program
  2002-03-22 15:28 ` Ehud Lamm
@ 2002-03-22 16:09   ` Fraz
  2002-03-23 15:26     ` Ehud Lamm
  0 siblings, 1 reply; 7+ messages in thread
From: Fraz @ 2002-03-22 16:09 UTC (permalink / raw)


yeah i am using windows - can u give me any more details about this??

Fraz

"Ehud Lamm" <mslamm@huji.ac.il> wrote in message
news:a7fin6$sg8$1@news.iucc.ac.il...
> "Fraz" <fraz@totalise.co.uk> wrote in message
> news:QqHm8.8403$eG.503335@news2-win.server.ntlworld.com...
> > Is there any ada command that will allow me to launch another exe file?
> >
> > Fraz
> >
>
> It depends on the operating system. On Windows you can do this by pragma
> import- ing WinExec, for example.
>
> Ehud Lamm
>
>





^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: executing a file from within a program
@ 2002-03-22 16:16 Beard, Frank [Contractor]
  0 siblings, 0 replies; 7+ messages in thread
From: Beard, Frank [Contractor] @ 2002-03-22 16:16 UTC (permalink / raw)


On Windows, using the Win32 API or WinApi binding, you can use Winexec
(easiest), CreateProcess, or ShellExec. 

On Unix, there's good old Fork and Exec, or better yet use the Posix binding
to call Start_Process. 

Frank 


-----Original Message-----
From: Fraz
To: comp.lang.ada@ada.eu.org
Sent: 3/22/02 9:43 AM
Subject: executing a file from within a program

Is there any ada command that will allow me to launch another exe file?

Fraz


_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: executing a file from within a program
  2002-03-22 14:43 Fraz
  2002-03-22 15:28 ` Ehud Lamm
  2002-03-22 16:02 ` sk
@ 2002-03-22 17:41 ` Pascal Obry
  2 siblings, 0 replies; 7+ messages in thread
From: Pascal Obry @ 2002-03-22 17:41 UTC (permalink / raw)



"Fraz" <fraz@totalise.co.uk> writes:

> Is there any ada command that will allow me to launch another exe file?

You got many responses already but none is compiler and OS independant. If
this is a goal have a look at POSIX. Florist for UNIX/Linux and Win32POSIX for
Windows. The later being available on my homepage.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: executing a file from within a program
  2002-03-22 16:09   ` Fraz
@ 2002-03-23 15:26     ` Ehud Lamm
  0 siblings, 0 replies; 7+ messages in thread
From: Ehud Lamm @ 2002-03-23 15:26 UTC (permalink / raw)



"Fraz" <fraz@totalise.co.uk> wrote in message
news:TGIm8.8576$eG.591187@news2-win.server.ntlworld.com...
> yeah i am using windows - can u give me any more details about this??
>

I emailed a simple routine that uses WinExec. But do try the GNAT OS
paclages.

Ehud





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-03-23 15:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-22 16:16 executing a file from within a program Beard, Frank [Contractor]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-22 14:43 Fraz
2002-03-22 15:28 ` Ehud Lamm
2002-03-22 16:09   ` Fraz
2002-03-23 15:26     ` Ehud Lamm
2002-03-22 16:02 ` sk
2002-03-22 17:41 ` Pascal Obry

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