comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Running programs using ADA
Date: Sat, 1 Dec 2012 12:20:21 +0100
Date: 2012-12-01T12:20:21+01:00	[thread overview]
Message-ID: <riy5e6gzzv52.p2ddmcvsv411.dlg@40tude.net> (raw)
In-Reply-To: 14df4e2f-0259-4ce0-8d5f-7a4c9964de96@g6g2000vbk.googlegroups.com

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



  reply	other threads:[~2012-12-05  3:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-30  7:56 Running programs using ADA Hans Vlems
2012-11-30  8:00 ` Nasser M. Abbasi
2012-11-30 12:54   ` Hans Vlems
2012-11-30 21:22 ` Per Sandberg
2012-12-01  9:33   ` Hans Vlems
2012-12-01 11:20     ` Dmitry A. Kazakov [this message]
2012-12-01 21:49       ` Hans Vlems
2012-12-02 11:22         ` Brian Drummond
2012-12-03  7:56           ` Hans Vlems
2012-12-03 12:03             ` Brian Drummond
2012-12-04  4:49               ` Randy Brukardt
2012-12-01 15:26 ` Anatoly Chernyshev
2012-12-01 21:50   ` Hans Vlems
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox