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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7b8de157955433d X-Google-Attributes: gid103376,public From: Michal Zalewski Subject: Re: Ada/Operating System Interface (OSI) Date: 2000/08/15 Message-ID: #1/1 X-Deja-AN: 658472910 References: <8n9uu8$5sh$1@news.tpi.pl> X-Hate: Where do you want to go to die? Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: usenet@tpi.pl X-Trace: news.tpi.pl 966333965 24598 195.117.3.59 (15 Aug 2000 10:06:05 GMT) Organization: tp.internet - http://www.tpi.pl Mime-Version: 1.0 NNTP-Posting-Date: 15 Aug 2000 10:06:05 GMT Newsgroups: comp.lang.ada Date: 2000-08-15T10:06:05+00:00 List-Id: On Tue, 15 Aug 2000, Ultor wrote: > I'm wondering how to execute other process from ADA (I got GNAT). I've > found "Ada/Operating System Interface (OSI)" which gives ability to > execute process using Invoke_Process procedure from this package. I > believe that ther's some standard procedure for executing process in > ADA95. Could any1 tell me which procedure is that cause i can't find > it in Reference. At least under GNAT, you can always use GNAT.OS_Lib.Spawn procedure. Typical, call looks this way: with GNAT.OS_Lib; [...] Args : Argument_List (1..10); ret : Boolean; [...] Args (1) := new String'("-l"); GNAT.OS_Lib.Spawn( Program_Name => "/bin/ls", Args => args (1..1), Success => ret ) Unfortunately, I have no idea if there's any portable way to execute programs on Unix machines within Ada code (and without importing system() or exec*() functions from C libraries ;). _______________________________________________________ Michal Zalewski [lcamtuf@tpi.pl] [tp.internet/security] [http://lcamtuf.na.export.pl] <=--=> bash$ :(){ :|:&};: =-----=> God is real, unless declared integer. <=-----=