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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eceaf04ab9f6c9eb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.224.183.16 with SMTP id ce16mr983545qab.8.1354280090070; Fri, 30 Nov 2012 04:54:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.48.41 with SMTP id i9mr198459qen.36.1354280090039; Fri, 30 Nov 2012 04:54:50 -0800 (PST) Path: gf5ni33878599qab.0!nntp.google.com!i9no287477qap.0!postnews.google.com!bx4g2000vbb.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 30 Nov 2012 04:54:49 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: bx4g2000vbb.googlegroups.com; posting-host=193.173.52.213; posting-account=Od-2dQoAAAB0Ax1n9anxOF811WhPXsCz NNTP-Posting-Host: 193.173.52.213 References: User-Agent: G2/1.0 X-HTTP-Via: 1.1 S00-PROXY-ISA X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe) Message-ID: Subject: Re: Running programs using ADA From: Hans Vlems Injection-Date: Fri, 30 Nov 2012 12:54:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-11-30T04:54:49-08:00 List-Id: On 30 nov, 09:00, "Nasser M. Abbasi" wrote: > On 11/30/2012 1:56 AM, Hans Vlems wrote: > > > than C so I hope that ADA may help me here. More specifically: does > > ADA have support for a function similar to C's system()? > > > Example: > > > int main(void) > > { > > =A0 =A0 int retval; > > =A0 =A0 retval=3Dsystem("copy h:\*.* g:\"); > > =A0 =A0 printf("return value %d\n",retval); > > =A0 =A0 return EXIT_SUCCESS; > > } > > yes. see > > http://rosettacode.org/wiki/Execute_a_system_command#Ada > > few examples are given > > --Nasser Now that is a very useful website! Thank you very much indeed, Nasser. Hans