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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Is there some way of calling a system command? Date: Tue, 26 Nov 2013 21:31:49 +0100 Organization: cbb software GmbH Message-ID: References: <1150031952.347657.244910@i40g2000cwc.googlegroups.com> <78030be6-8fe4-4514-85fc-a2627507628f@googlegroups.com> <20131126192430.45ba47f3@lufsen.sandat.dyndns.org> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: Ws8cDh6KC0dYMbHlsA0RIw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1736 Xref: number.nntp.dca.giganews.com comp.lang.ada:184005 Date: 2013-11-26T21:31:49+01:00 List-Id: On Tue, 26 Nov 2013 11:58:18 -0700, Jeffrey Carter wrote: > On 11/26/2013 11:24 AM, Per Sandberg wrote: >> Why not just >> GNAT.OS_Lib.spawn >> or >> GNAT.Expect.* >> ? > > A. One is using another compiler > > B. One wishes to write portable code It is rather debatable what would be more portable calling to system or using GNAT's OS_Lib. In more realistic cases, when some sort of process communication is involved, system is not an option. Even OS_Lib is quite complicated for asynchronous calls with pipes etc. I wish there were some standard Ada library with proxy task interface for an outstanding system process. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de