From: sk <noname@myob.com>
To: comp.lang.ada@ada-france.org
Subject: Re: Newbie GNAT question
Date: Tue, 28 Oct 2003 08:40:38 -0600
Date: 2003-10-28T08:40:38-06:00 [thread overview]
Message-ID: <mailman.237.1067352108.25614.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: 3F9E7848.1080304@myob.com
Oops ... the ghost of RD got me so I had to fix it :-)
---------------------------------------------------------------
with Gnat.Os_Lib;
procedure GOSL_Test is
Ok : Boolean := False;
begin
-- Method One.
declare
Cmd : constant String := "/bin/ls";
Args : constant Gnat.Os_Lib.Argument_List := (
Gnat.Os_Lib.Argument_String_To_List ("-al").All
);
Success : Boolean := False;
begin
Gnat.Os_Lib.Spawn (Cmd, Args, Success);
-- Check success and continue ...
end;
-- Method Two.
Gnat.Os_Lib.Spawn (
Program_Name => "/bin/ls",
Args => Gnat.Os_Lib.Argument_String_To_List("-al").all,
Success => Ok
);
end GOSL_Test;
--
-------------------------------------------------
-- Merge vertically for real address
--
-- s n p @ t . o
-- k i e k c c m
-------------------------------------------------
prev parent reply other threads:[~2003-10-28 14:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-24 20:18 Newbie GNAT question David Gressett
2003-10-24 21:41 ` David Gressett
2003-10-25 2:41 ` Gautier Write-only
2003-10-26 12:22 ` Martin Krischik
2003-10-26 15:09 ` sk
2003-10-27 15:53 ` Martin Krischik
2003-10-28 14:08 ` sk
2003-10-29 16:18 ` Martin Krischik
[not found] ` <3F9E7848.1080304@myob.com>
2003-10-28 14:40 ` sk [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox