comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Catching Standard_Error with GNAT.Expect
Date: Sun, 07 Feb 2010 17:11:49 -0500
Date: 2010-02-07T17:11:49-05:00	[thread overview]
Message-ID: <nospam-BC93E8.17114907022010@news.aioe.org> (raw)
In-Reply-To: a996dc2c-ba18-41cd-9812-266f4a5742cc@q27g2000yqn.googlegroups.com

In article 
<a996dc2c-ba18-41cd-9812-266f4a5742cc@q27g2000yqn.googlegroups.com>,
 Gautier write-only <gautier_niouzes@hotmail.com> 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
<http://sites.google.com/site/drjohnbmatthews>



  reply	other threads:[~2010-02-07 22:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-07 21:56 Catching Standard_Error with GNAT.Expect Gautier write-only
2010-02-07 22:11 ` John B. Matthews [this message]
2010-02-07 22:21   ` Gautier write-only
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox