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: a07f3367d7,2eaa79b239236b49 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!aioe.org!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Catching Standard_Error with GNAT.Expect Date: Sun, 07 Feb 2010 17:11:49 -0500 Organization: The Wasteland Message-ID: References: NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news1.google.com comp.lang.ada:8960 Date: 2010-02-07T17:11:49-05:00 List-Id: In article , Gautier write-only wrote: > I get a nice asynchronous text output piping from an external process > thanks to GNAT.Expect (test code below). Now a last issue: when the > process is speaking through Standard_Error (like the GNAT compiler > for its messages, if I'm not mistaken), nothing make its way to > Expect_Out. Is there any switch to get the Standard_Error messages > piped ? (I guess yes, since GPS is using GNAT.Expect). TIA! I think setting Err_To_Out might do this, but I haven't tried: "If Err_To_Out is True, then the standard error of the spawned process is connected to the standard output. This is the only way to get the Except subprograms also match on output on standard error." -- John B. Matthews trashgod at gmail dot com