comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Running external programs in ADA.
Date: 1999/02/25
Date: 1999-02-25T00:00:00+00:00	[thread overview]
Message-ID: <7b3okp$3e6@hobbes.crc.com> (raw)
In-Reply-To: Pine.SOL.4.02A.9902251428030.18391-100000@dcsun2.comp.brad.ac.uk


Matthew Butt wrote in message ...
>Hi all...
>
>Does anyone know how I can call an external program in Ada?
>
>I need to do a bit of text processing, call a UNIX command and then do a
>bit more processing and call another program.
>
Well... you need to define the problem more completely.

Ada can do all of the things a C program can do.  For example, it can execute
a shell command via the "system" C-library function, or "fork," wait for child
process completion, etc., etc.

Here are (at least some of) the questions that need to be answered, viz.:

   1.  Do you need to wait until the UNIX command completes before proceeding?
   2.  Do you need results from the UNIX command to be used in your continued processing?
   3.  If the answer to (2.) is "yes," are these results binary or text, and how do you
       propose to communicate them?
   4.  You speak of "UNIX command" and "another program."  Are these terms as used by you
       synonymous?








  reply	other threads:[~1999-02-25  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-25  0:00 Running external programs in ADA Matthew Butt
1999-02-25  0:00 ` David C. Hoos, Sr. [this message]
1999-02-25  0:00 ` dennison
1999-02-25  0:00 ` Steve Quinlan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox