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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,eceaf04ab9f6c9eb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.86.102 with SMTP id o6mr3215077paz.41.1354677321524; Tue, 04 Dec 2012 19:15:21 -0800 (PST) Path: s9ni26905pbb.0!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!backlog2.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Running programs using ADA Date: Sat, 1 Dec 2012 12:20:21 +0100 Organization: cbb software GmbH Message-ID: References: <20121130222242.7841f869@lufsen.sandat.dyndns.org> <14df4e2f-0259-4ce0-8d5f-7a4c9964de96@g6g2000vbk.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: kWJV5lTRAyCzy8lsfOrlcw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 2070 X-Received-Bytes: 2293 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-12-01T12:20:21+01:00 List-Id: On Sat, 1 Dec 2012 01:33:14 -0800 (PST), Hans Vlems wrote: > the language does help in this case. > Because the mingw C compiler bindings rely on the libraries supplied > by Microsoft. > The systems I've got to work with have no support for the system() > function. > ADA can do without them and this allows me to run various command line > programs (with several options) without the need to have access to > cmd.exe (which is prohibited too). Strictly speaking Ada cannot do this. The standard Ada run-time library does not define any means to start a process for [good] reasons which are irrelevant here. Various existing solutions always rely on libraries, which are either compiler vendor-specific, like in the case of GNAT.OS_Lib, or OS-specific, e.g. Win32 bindings, or [sub]standard libraries providing functionality in a more or less OS-independent way, like POSIX , Glib, Qt. Note also that running processes is much more than merely spawning them. Usually you want to get the execution status, wait for completion, attach input/output/error pipes and so on. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de