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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,880c6df074e603db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-13 09:03:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Is it possible to start another executable from within an adaprogram? Date: Tue, 13 May 2003 11:03:00 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:37287 Date: 2003-05-13T11:03:00-05:00 List-Id: "Vincent" wrote in message news:f7b6c6c4.0305130726.1eca1ea2@posting.google.com... > I have a little problem : I am trying to start another .exe from my > ADA program... Anybody knows of a way to do such a thing? > > In a perfect world, I'd prefer the call to be blocking, but I could > also do with a non-blocking call. Any ideas? Here is a library-level function that invokes the "system" function of the C-runtime library. with Interfaces.C; function Execute_Shell_Command (Command : in String) return Integer is function Execute (Command : in Interfaces.C.char_array) return Interfaces.C.int; pragma Import (C, Execute, "system"); begin -- Execute_Shell_Command return Integer (Run (Interfaces.C.To_C (Item => Command))); end Execute_Shell_Command; > > Thanks, > > Vincent > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >