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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92640d662fc31a03 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-04 04:01:11 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!skynet.be!newsfeed1.news.nl.uu.net!sun4nl!reader1.news.nl.uu.net!not-for-mail From: noam@dds.nl (Noam Kloos) Newsgroups: comp.lang.ada Subject: Re: howto make system calls (newbie question) Date: Fri, 04 May 2001 11:00:37 GMT Organization: UUNET-NL (http://www.nl.uu.net) Message-ID: <3af28b0a.12441933@news.nl.uu.net> References: NNTP-Posting-Host: lando.interspective.nl X-Trace: porthos.nl.uu.net 988974070 13679 193.78.225.114 (4 May 2001 11:01:10 GMT) X-Complaints-To: abuse@nl.uu.net NNTP-Posting-Date: 4 May 2001 11:01:10 GMT X-Newsreader: Forte Free Agent 1.21/32.243 Xref: newsfeed.google.com comp.lang.ada:7143 Date: 2001-05-04T11:01:10+00:00 List-Id: I was just busy with the same problem. For the C system command I use there is a way with 'pragma Import(C,localname,externalname) but haven't got it to work yet. On Fri, 4 May 2001 09:51:45 +0200, Lars Lundgren wrote: >Hi there, > >How do I execute other programs from within ada? > >I.e how do I convert - for example - the following C program to ada? > >#include > >main(){ > printf("Files in Directory are:\n"); > system("ls -l"); >} > >Thanx, >/Lars L > >