Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/