X-Spam-Check-By: sourceware.org Date: Fri, 24 Mar 2006 08:47:33 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Paul G Cantalupo cc: cygwin AT cygwin DOT com Subject: Re: Windows mysql client hangs in cygwin ssh shell In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On Fri, 24 Mar 2006, Paul G Cantalupo wrote: > Hello, > > When I run the Windows mysql client from a cygwin bash shell everything > works fine. But when I run the Windows mysql client after logging into > my computer with ssh, then the client hangs - read: I don't see 'Enter > password:'. If I run a cygwin compiled source version of mysql, it works > on both the regular bash shell and ssh. So, does this have something to > do with the Windows client being unable to output to a ssh shell? Cygwin's ssh (and rxvt, and xterm, and pretty much anything but the Windows console window) uses pipes to emulate a tty (a "pty"). When Cygwin applications try to detect whether their output is a tty, Cygwin provides the right answer. Windows applications don't have access to this functionality, so the application thinks you're writing to a file and doesn't do anything interactively. There's really not much you can do about it without fixing the application somehow. Some applications have a "force interactive mode" switch, which should work. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- 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/