This is the mail archive of the
mailing list for the Cygwin project.
Re: ssh session hangs while running cmd on remote server
- From: Albrecht Schlosser <cygwin at go4more dot de>
- To: cygwin at cygwin dot com
- Date: Fri, 01 Jun 2007 12:33:06 +0200
- Subject: Re: ssh session hangs while running cmd on remote server
- References: <email@example.com> <465F2B22.firstname.lastname@example.org> <20070531201428.GB21273@ednor.casa.cgf.cx> <465F2F94.email@example.com> <20070531203100.GB21388@ednor.casa.cgf.cx> <firstname.lastname@example.org>
I have tried ssh using both interactive and command line mode, and I get theMaybe it doesn't "hang" at all ...
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.
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 ?
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