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,a33ec7badc330d9e X-Google-Attributes: gid103376,public From: ron@cs.tamu.edu (Ron J Theriault) Subject: Re: Ada Equivalent of "system()" in C? Date: 1996/04/19 Message-ID: <4l8ap7$ed2@news.tamu.edu>#1/1 X-Deja-AN: 150333176 sender: ron@slx0 (Ron J Theriault) references: <4l1dbi$pho@rational.rational.com> organization: Texas A&M Computer Science Department, College Station, TX newsgroups: comp.lang.ada Date: 1996-04-19T00:00:00+00:00 List-Id: In article , emery@grebyn.com (David Emery) writes: |> In article <4l1dbi$pho@rational.rational.com>, rlk@rational.com (Bob |> Kitzberger) wrote: |> |> > : I'm new to Ada programming, having come from a C background. Is |> > : there an equivalent in Ada of the "system()" function in C that |> > : allows you execute an external program? |> > |> > Take a look at the Posix Ada bindings -- likely provided by |> > your compiler vendor. ... |> > -- |> > Bob Kitzberger Rational Software Corporation rlk@rational.com |> |> The Unix function system() is not included in POSIX.1 or POSIX.5. I |> believe that it is included in the POSIX.1a revision that is still in |> development.... |> dave Posix 1003.5 defines the Ada 83 to POSIX API interface. One would use: Posix_Process_Primitives.Start_Process, and then wait for it to finish. The executable to start, would be a shell of ones choosing, with the command string as an argument. -- Ron Theriault | CS Department | In a democracy, you only have to fool Texas A&M Univ. | most of the people, most of the time. ron@cs.tamu.edu |