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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-ID: <3213718.xemr02fEjO@linux1.krischik.com> From: Martin Krischik Subject: Re: How to spawn, fork, and exec within Ada (Do you have small example program) Newsgroups: comp.lang.ada Date: Wed, 28 Jun 2006 17:56:23 +0200 References: <1151434435.502270.265470@m73g2000cwd.googlegroups.com> <1151501695.077579.108560@i40g2000cwc.googlegroups.com> User-Agent: KNode/0.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 80.218.119.160 (80.218.119.160) NNTP-Posting-Date: Wed, 28 Jun 2006 18:45:11 +0200 X-Trace: 01ec144a2b217f57fd20517966 Xref: g2news2.google.com comp.lang.ada:5223 Date: 2006-06-28T17:56:23+02:00 List-Id: Chris L wrote: > > Steve wrote: >> The answer is the same: you may be able to do it, but you probably don't >> really want to. There are other ways of achieving the same functionality >> that are a lot easier. > > Could you elaborate with an example? Do you mean use one process > instead of a parent child pair of processies? Depends in what you want to archive. Ada has build in support for threads (called task in Ada and lightweight processes in unix) - so unless you want to start "/bin/ls" or "/bin/sh" you might be better off using tasks instead of processes. If you still need processes then AdaCL [1] has the needed support. Martin [1] http://adacl.sf.net -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com