delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/29/07:32:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <433BD0E0.FBB9C319@dessent.net>
Date: Thu, 29 Sep 2005 04:32:48 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.x: Windows 2003 - no console output
References: <200509291234575 DOT SM02296 AT grimace>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Igor Kalders wrote:

> - Start the console with "C:\WINDOWS\system32\cmd.exe"
> - CD to the cygwin installation directory ("C:\Program Files\OpenSSH",
> "C:\Program Files\CopSSH" or "C:\cygwin")
> - Execute any command (ls, ps, man, bash, ...)
> - Getting no console output

You are running non-Cygwin programs in a Cygwin tty (because you have
'tty' in $CYGWIN.)  Non-Cygwin programs do not know what a Cygwin tty
is, and think they are writing to a pipe.  This causes the output to be
buffered, so you only see output in large chunks when the buffer fills
enough to be flushed.

The reason it works when you launch them from strace is because strace
is not a Cygwin binary (that is, it's compiled with mingw and doesn't
use cygwin1.dll) and so when it launches the child process a
normal/native console is used.

The solution is probably one of:

- Don't try to run non-Cygwin programs from a Cygwin tty.  Why in the
world are you not using the Cygwin-packaged openssh?  It will not suffer
from this.

- Remove 'tty' from $CYGWIN (and don't use rxvt/xterm) in which case
Cygwin will not use a pseudoterminal but instead use the native windows
console.

Brian

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019