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,e86fb8cc090152ea X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!y41g2000cwy.googlegroups.com!not-for-mail From: "Ludovic Brenta" Newsgroups: comp.lang.ada Subject: Re: Is there some way of calling a system command? Date: 15 Jun 2006 07:11:10 -0700 Organization: http://groups.google.com Message-ID: <1150380670.682513.68030@y41g2000cwy.googlegroups.com> References: <1150031952.347657.244910@i40g2000cwc.googlegroups.com> <449168a1$0$9944$636a55ce@news.free.fr> NNTP-Posting-Host: 212.123.3.11 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1150380675 29855 127.0.0.1 (15 Jun 2006 14:11:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 15 Jun 2006 14:11:15 +0000 (UTC) In-Reply-To: <449168a1$0$9944$636a55ce@news.free.fr> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.6) Gecko/20040116,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 KUUPXS02 Complaints-To: groups-abuse@google.com Injection-Info: y41g2000cwy.googlegroups.com; posting-host=212.123.3.11; posting-account=ZjNXewwAAADyBPkwI57_UcX8yKfXWOss Xref: g2news2.google.com comp.lang.ada:4789 Date: 2006-06-15T07:11:10-07:00 List-Id: Michel Simeon writes : > I am learning Ada and does not know C. > I tried your approach to call an othe program from Ada and it worked, except > for one problem: the calling program will wait for the return parameter (Rc > in your exemple) and thus freeze till the other one is closed. > Could i do something similar but withour the retrun parameter ? See GNAT.OS_Lib.Non_Blocking_Spawn, GNAT.Expect.Non_Blocking_Spawn. -- Ludovic Brenta.