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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5a78c81cd9a1f563 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!llslave.llan.ll.mit.edu!53ab2750!not-for-mail From: "Frank J. Lhota" User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How to spawn, fork, and exec within Ada (Do you have small example program) References: <1151434435.502270.265470@m73g2000cwd.googlegroups.com> <87mzbypazz.fsf@ludovic-brenta.org> In-Reply-To: <87mzbypazz.fsf@ludovic-brenta.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 28 Jun 2006 09:53:34 -0400 NNTP-Posting-Host: 155.34.132.133 X-Complaints-To: news@ll.mit.edu X-Trace: llslave.llan.ll.mit.edu 1151502891 155.34.132.133 (Wed, 28 Jun 2006 09:54:51 EDT) NNTP-Posting-Date: Wed, 28 Jun 2006 09:54:51 EDT Xref: g2news2.google.com comp.lang.ada:5216 Date: 2006-06-28T09:53:34-04:00 List-Id: Ludovic Brenta wrote: > 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. One should also point out that on the MS Windows systems, there is no OS call equivalent to the Unix "fork" or "exec" functions. The "spawn" functionality can be achieved using the Win32 / Win64 function "CreateProcess". > 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. >