X-Spam-Check-By: sourceware.org Message-ID: <465FF5E2.2090406@go4more.de> Date: Fri, 01 Jun 2007 12:33:06 +0200 From: Albrecht Schlosser User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ssh session hangs while running cmd on remote server References: <10900723 DOT post AT talk DOT nabble DOT com> <465F2B22 DOT 5000502 AT cygwin DOT com> <20070531201428 DOT GB21273 AT ednor DOT casa DOT cgf DOT cx> <465F2F94 DOT 503 AT cygwin DOT com> <20070531203100 DOT GB21388 AT ednor DOT casa DOT cgf DOT cx> <10903320 DOT post AT talk DOT nabble DOT com> In-Reply-To: <10903320.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 KenLee wrote: > I have tried ssh using both interactive and command line mode, and I get the > same results. That is - sorry for being pedantic about this - I had invoked > ssh first with the command line option, and it worked. I invoked ssh again > with the command line again, but it hung this time. Then I just invoked ssh > on its own, and entered the commands one at a time, and it hung again. > > Then I ran cygwin directly on the remote server (thinking that it's the VB > script causing the problem), so I entered cmd /c update.kcu (without any > ssh) and it worked just fine. > Maybe it doesn't "hang" at all ... Something I can see is that a (windows console) program _seems_ to hang, but actually it doesn't. stdout seems to be (block) buffered when run from an xterm or rxvt session, but unbuffered when run from a local standard cygwin window. One test to see what happens would be to run the program with stdin redirected to /dev/null to get an error message: cmd /c update.kcu < /dev/null When I do this, I can see the program's prompt and some output that would be missing otherwise. What happens, if you do that ? Albrecht P.S. BTW: Is there a way to set stdout to unbuffered without modifying the windows console program? -- 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/