comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: How to spawn, fork, and exec within Ada (Do you have small example program)
Date: Tue, 27 Jun 2006 23:03:12 +0200
Date: 2006-06-27T23:03:12+02:00	[thread overview]
Message-ID: <87mzbypazz.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 1151434435.502270.265470@m73g2000cwd.googlegroups.com

Chris L writes:
> These care routinely done in C/C++. How can they be done in Ada? Do
> you have a short program example of these?
>
> Thank you,
> Christopher Lusardi

fork, exec, and spawn are specific to Unix and Unix-like systems; so
the answer depends on your compiler and operating system.  If GNAT on
Unix, GNU, or *BSD, look at GNAT.Expect.Non_Blocking_Spawn.

You can also "routinely" call any C function from an Ada program, so
if you insist, you can really fork and exec.  But that would be the
wrong (error-prone) way of achieving the same result.

-- 
Ludovic Brenta.



  parent reply	other threads:[~2006-06-27 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1151434435.502270.265470@m73g2000cwd.googlegroups.com>
2006-06-27 20:50 ` How to spawn, fork, and exec within Ada (Do you have small example program) Jeffrey R. Carter
2006-06-27 21:03 ` Ludovic Brenta [this message]
2006-06-28 13:53   ` Frank J. Lhota
2006-06-28  2:41 ` Steve
     [not found]   ` <1151501695.077579.108560@i40g2000cwc.googlegroups.com>
2006-06-28 15:56     ` Martin Krischik
2006-06-28 20:42       ` Frank
2006-06-29  2:02     ` Steve
replies disabled

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