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 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce7e6cb0bec07cff X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-07 01:43:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!bnewspeer00.bru.ops.eu.uu.net!auucp0.ams.ops.eu.uu.net!bnewsifeed00.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.uu.net!read.news.fr.uu.net!not-for-mail Sender: briot@lyon.act-europe.fr Newsgroups: comp.lang.ada Subject: Re: retrieve command result References: <3DC946C2.3000505@cnam.fr> From: Emmanuel Briot Reply-To: briot@act-europe.fr Date: 07 Nov 2002 10:43:14 +0100 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: lyon.act-europe.fr X-Trace: 1036662198 read.news.fr.uu.net 12221 212.157.227.160 X-Complaints-To: abuse@fr.uu.net Xref: archiver1.google.com comp.lang.ada:30511 Date: 2002-11-07T10:43:14+01:00 List-Id: Stephen Leake writes: > evangeli writes: > > is it possible to retrieve the result of a command in a variable. > > i explain myself: > There is no Standard way to do this, and I see nothing in the GNAT > extensions for it either. There is a package, which I think was already there with 3.14p, called GNAT.Except which can be used to do this sort of things. It is more aimed at interactive programs, where you want to keep sending input and receiving output from the second process, but it might be used in the simple scenario you want as well. This is portable to most systems where GNAT is ported (apart from VMS I believe), and is the package used by GVD to communicate with gdb. Emmanuel