From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6bcdc23b05684cbe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-28 06:09:24 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.vmunix.org!newsfeed.stueberl.de!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Newbie GNAT question Date: Tue, 28 Oct 2003 08:08:08 -0600 Organization: Cuivre, Argent, Or Message-ID: References: <3702372.KgjAOxL2ds@linux1.krischik.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1067350162 59793 80.67.180.195 (28 Oct 2003 14:09:22 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 28 Oct 2003 14:09:22 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:1773 Date: 2003-10-28T08:08:08-06:00 krischik@users.sourceforge.net: > However there is not Free_Arguement_List (...) in > Gnat.Os_Lib. But don't despair there is one in > AdaCL.OS.Command. Do you need one ? declare Cmd : constant String := "/bin/ls"; Args : constant String := Gnat.Os_Lib.Arguement_String_To_List ("-al"); Success : Boolean := False; begin Gnat.Os_Lib.Spawn (Cmd, Args, Success); -- Check success and continue ... end; OR .... Gnat.Os_Lib.Spawn ( Command => "/bin/ls", Args => Gnat.Os_Lib.Argument_String_To_List ("-al"), Success => Success ); I believe that there is no need for a "Free" in either case :-) -- ------------------------------------------------- -- Merge vertically for real address -- -- s n p @ t . o -- k i e k c c m -------------------------------------------------