From: sk <noname@myob.com>
To: richard@adaworks.com,
"comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Subject: Re: Exec command in ada.
Date: Sun, 02 Mar 2003 14:20:02 -0600
Date: 2003-03-02T14:20:02-06:00 [thread overview]
Message-ID: <mailman.18.1046636049.1343.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3E624F55.24370B5C@adaworks.com
Hi,
richard@adaworks.com :
> ... example ...
package GOSL renames Gnat.Os_Lib;
Args : GOSL.Argument_List := (
GOSL.Argument_String_To_List ("-c hello.adb").All
);
1)
Spawn_Result := GOSL.Spawn (
Program_Name => "/usr/gnat/bin/gnatmake",
Args => Args
);
2)
GOSL.Spawn (
Program_Name => "/usr/gnat/bin/gnatmake",
Args => Args,
Success => Success_Flag
);
3)
Called_Process := GOSL.Non_Blocking_Spawn (
Program_Name => "/usr/gnat/bin/gnatmake",
Args => Args
);
...
Wait_Process (Called_Process, Success_Flag);
--
-------------------------------------------------
-- Merge vertically for real address
--
-- s n p @ t . o
-- k i e k c c m
-------------------------------------------------
next prev parent reply other threads:[~2003-03-02 20:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-28 10:07 Exec command in ada Mark
2003-02-28 11:44 ` Frank Piron
2003-03-02 18:37 ` Richard Riehle
2003-03-02 20:20 ` sk [this message]
2003-03-02 20:26 ` Simon Wright
2003-03-02 22:30 ` Pascal Obry
2003-03-02 23:47 ` Richard Riehle
2003-03-03 16:05 ` Pascal Obry
2003-02-28 18:18 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox