delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/10/08:28:22

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
Date: Mon, 10 Jan 2005 14:28:10 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: SSH client hang running uncompressed tar on various servers
Message-ID: <20050110132810.GA23702@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <9e3862d80501100309715ff080 AT mail DOT gmail DOT com> <20050110124023 DOT GH7748 AT cygbert DOT vinschen DOT de> <9e3862d8050110050867b1598a AT mail DOT gmail DOT com>
Mime-Version: 1.0
In-Reply-To: <9e3862d8050110050867b1598a@mail.gmail.com>
User-Agent: Mutt/1.4.2i

On Jan 11 00:08, Brett Porter wrote:
> What's weirder: it works when run from bash, but fails when forked
> from Java (actually, via the program Ant). If I fork  "bash -c 'set'",
> the environment seems normal, so I assume ssh is also getting the
> normal environment. If I fork bash from java and run ssh, it still
> fails. If I run ssh from cmd.exe, it succeeds.

It could be a simple problem with stdio buffering or it could be the
same problem which keeps native unison from working over ssh in 1.5.12.
You could try to switch to unbuffered IO in java before forking ssh,
just for testing.  Is the output from the server side necessary for
your application to work?  If not, you could redirect output on the
server side to /dev/null.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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