From: Dirk Heinrichs <dirk.heinrichs@altum.de>
Subject: Re: Is there some way of calling a system command?
Date: Tue, 26 Nov 2013 22:03:52 +0100
Date: 2013-11-26T22:03:52+01:00 [thread overview]
Message-ID: <l732bo$gbt$1@online.de> (raw)
In-Reply-To: 2e86f26f-8fcf-4bde-b426-4bebe19e2630@googlegroups.com
adambeneschan@gmail.com wrote:
> You could try putting it in a task. GNAT and other compilers will cause
> the task to run in another thread (depending on the OS, I think), so it
> should probably work, but I won't make any guarantees. C library routines
> may do stuff that could interfere with the Ada code that handles tasking.
AFAIK Gnat's System.Os_Lib says you shouldn't.
> Other than that: if you're using GNAT, try one of the other suggested
> library routines GNAT provides. If you're using another compiler, perhaps
> they provide libraries with similar functionality, or else you'll have to
> figure out what OS calls will do the job and use Import pragmas to call
> them yourself. Ada just doesn't have a standardized mechanism for
> spawning other programs or commands. It looks like one was discussed in
> 2004 (AI95-371), but it didn't get approved.
There's also SpawnManager (http://www.codelabs.ch/spawn-manager/index.html),
which was developed to solve System.OsLib's restriction.
HTH...
Dirk
--
Dirk Heinrichs <dirk.heinrichs@altum.de>
Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913
GPG Public Key C2E467BB | Jabber: dirk.heinrichs@altum.de
next prev parent reply other threads:[~2013-11-26 21:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-11 8:46 Is there some way of calling a system command? Aldebaran
2006-06-11 13:19 ` jimmaureenrogers
2006-06-11 14:35 ` Aldebaran
2006-06-15 14:03 ` Michel Simeon
2006-06-15 14:11 ` Ludovic Brenta
2006-06-15 14:57 ` Michel Simeon
2013-11-26 15:35 ` tolkamp
2013-11-26 16:10 ` adambeneschan
2013-11-26 18:54 ` tolkamp
2013-11-26 19:49 ` adambeneschan
2013-11-26 21:03 ` Dirk Heinrichs [this message]
2013-11-27 7:02 ` Georg Bauhaus
2013-11-27 14:10 ` Eryndlia Mavourneen
2013-11-27 8:52 ` Jacob Sparre Andersen
2013-11-27 18:56 ` tolkamp
2013-11-26 18:24 ` Per Sandberg
2013-11-26 18:58 ` Jeffrey Carter
2013-11-26 20:31 ` Dmitry A. Kazakov
2013-11-26 22:52 ` Randy Brukardt
2013-11-28 5:37 ` Per Sandberg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox