comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Running external programs in ADA.
Date: 1999/02/25
Date: 1999-02-25T00:00:00+00:00	[thread overview]
Message-ID: <7b48fn$dbe$1@nnrp1.dejanews.com> (raw)
In-Reply-To: Pine.SOL.4.02A.9902251428030.18391-100000@dcsun2.comp.brad.ac.uk

In article <Pine.SOL.4.02A.9902251428030.18391-100000@dcsun2.comp.brad.ac.uk>,
  Matthew Butt <mabutt@dcsun2.comp.brad.ac.uk> wrote:
> 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.

Sure. First, figure out what system calls/library calls you would need to do
that in C. Second, call those routines from Ada. Ada can mimic C's calling
conventions, and thus can call any subroutine that was intended for C that can
be linked in.

If you don't know how to do this in C either, what you really have is a Unix
question, not an Ada question. We might be able to help with that too (if you
tell us what Unix flavor/platform you have), or you could ask in an
appropriate Unix newsgroup.


T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




      parent 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 ` Steve Quinlan
1999-02-25  0:00 ` David C. Hoos, Sr.
1999-02-25  0:00 ` dennison [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