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: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Subject: Re: Ada/Operating System Interface (OSI) Date: 2000/08/15 Message-ID: #1/1 X-Deja-AN: 658536566 References: <8n9uu8$5sh$1@news.tpi.pl> X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 966349661 216.44.122.34 (Tue, 15 Aug 2000 14:27:41 GMT) Organization: LJK Software NNTP-Posting-Date: Tue, 15 Aug 2000 14:27:41 GMT Newsgroups: comp.lang.ada Date: 2000-08-15T00:00:00+00:00 List-Id: In article , Michal Zalewski writes: > 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: > 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 ;). The original problem statement did not say Unix. Certainly as stated there is no way to write a fully portable program since the commands to be executed differ from one operating system to another.