comp.lang.ada
 help / color / mirror / Atom feed
* retrieve command result
@ 2002-11-06 16:43 evangeli
  2002-11-06 17:06 ` sk
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: evangeli @ 2002-11-06 16:43 UTC (permalink / raw)


hi all

is it possible to retrieve the result of a command in a variable.
i explain myself:

------------------------------------------------------------------
with GNAT.OS_Lib;
with Ada.Strings.Unbounded;
procedure Test is
	...
	my_string : Ada.Strings.Unbounded.unbounded_string;
	...
begin
	...
	GNAT.OS_Lib.Spawn("ls", ...);
	-- I WOULD LIKE TO GET IN my_string THE RESULT OF THE ls COMMAND
	...
end;
------------------------------------------------------------------

i am under linux with gnat 3.13p.

thanks for any help




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

end of thread, other threads:[~2002-11-07 15:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 16:43 retrieve command result evangeli
2002-11-06 17:06 ` sk
2002-11-06 17:46 ` Stephen Leake
2002-11-07  9:43   ` Emmanuel Briot
2002-11-07 13:56     ` Stephen Leake
2002-11-07  1:48 ` Marc A. Criley
2002-11-07 15:46   ` evangeli

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