comp.lang.ada
 help / color / mirror / Atom feed
From: prichtmyer@yahoo.com (Peter Richtmyer)
Subject: Re: Call to execvp in Rational Ada
Date: 29 Nov 2002 10:21:46 -0800
Date: 2002-11-29T18:21:46+00:00	[thread overview]
Message-ID: <1b585154.0211291021.8fbe539@posting.google.com> (raw)
In-Reply-To: mailman.1038464042.24147.comp.lang.ada@ada.eu.org

"Steven Deller" <a101.deller@smsail.com> wrote in message news:<mailman.1038464042.24147.comp.lang.ada@ada.eu.org>...
>
> You seem to have a mistaken expectation of the call to the UNIX execvp
> operation.  
>
You got that right! Thanks.

I found a suitable (though "rational-only") substitute. See below.

Thanks again,
Peter
-----------------------------------------------
with system;
with Unix_Operations;   -- in rational.rss
with Unix_Types;        -- also

procedure artest is

     nul      : constant Character := Character'Val (0);
     status   : Unix_Types.int := 0;
     command  : String := "ls -la" & nul;
                
begin  
    
    status := Unix_Operations.system (
        Command => Unix_Types.To_Char_Ptr(command'address));
       
end artest;
------------------------------------------------



      reply	other threads:[~2002-11-29 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-27 16:41 Call to execvp in Rational Ada Peter Richtmyer
2002-11-27 18:06 ` Warren W. Gay VE3WWG
2002-11-28  6:15   ` Steven Deller
2002-11-29 18:21     ` Peter Richtmyer [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