X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <26354920.post@talk.nabble.com>
Date: Sat, 14 Nov 2009 15:26:22 -0800 (PST)
From: aputerguy <nabble@kosowsky.org>
To: cygwin@cygwin.com
Subject: Re: How to capture stderr of dos process running in bash shell??
In-Reply-To: <4AFF05F3.5060706@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <26341304.post@talk.nabble.com> <4AFE14EB.5020305@gmail.com> <20091114185556.GA15089@ednor.casa.cgf.cx> <4AFF05F3.5060706@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Dave Korn writes:

>Christopher Faylor wrote:
>> 
>> Although, hmm, on rereading it isn't clear that the output shows up on
>> the screen.  It sounds like the DOS program just might not differentiate
>> between stdout and stderr.

Yes the output (both stderr and stdout) appear on screen

>  I checked: you can't redirect its error output at all, even in a genuine
>cmd.exe shell with cygwin having nothing to do with it.  It must indeed be
>using the console directly.  <checks imports>  Curiouser and curiouser...
it
>links msvcrt.dll and imports printf and wprintf, but then it goes and
actually
>does everything the hard way with lowlevel console i/o in unicode.  How
peculiar.

Strange. What is meant then by this sentence included in the help:
       "SubInAcl error messages are sent to the Standard error."


-- 
View this message in context: http://old.nabble.com/How-to-capture-stderr-of-dos-process-running-in-bash-shell---tp26341304p26354920.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

