From: ron@cs.tamu.edu (Ron J Theriault)
Subject: Re: Ada Equivalent of "system()" in C?
Date: 1996/04/19
Date: 1996-04-19T00:00:00+00:00 [thread overview]
Message-ID: <4l8ap7$ed2@news.tamu.edu> (raw)
In-Reply-To: emery-1604961854590001@line029.nwm.mindlink.net
In article <emery-1604961854590001@line029.nwm.mindlink.net>, 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 |
prev parent reply other threads:[~1996-04-19 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-15 0:00 Ada Equivalent of "system()" in C? Dave Sparks
1996-04-16 0:00 ` Samuel Tardieu
1996-04-16 0:00 ` Robert Dewar
1996-04-17 0:00 ` Samuel Tardieu
1996-04-17 0:00 ` Bob Kitzberger
1996-04-16 0:00 ` David Emery
1996-04-17 0:00 ` Robert Dewar
1996-04-22 0:00 ` Sandy Wise
1996-04-17 0:00 ` Keith Thompson
1996-04-19 0:00 ` Ron J Theriault [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox