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,21411b112f7858cc X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Running external programs in ADA. Date: 1999/02/25 Message-ID: <7b48fn$dbe$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 448399975 References: X-Http-Proxy: 1.0 x7.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Feb 25 19:32:07 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-02-25T00:00:00+00:00 List-Id: In article , Matthew Butt 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