Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: Cygwin List <cygwin@cygwin.com>
Message-Id: <6.1.0.6.0.20040803172459.0338a528@pop.prospeed.net>
X-Sender: 
Date: Tue, 03 Aug 2004 17:27:53 -0400
To: "David E. Meier" <dev@eth0.ch>, cygwin@cygwin.com
From: Larry Hall <lh-no-personal-replies-please@cygwin.com>
Subject: Re: Redirect stdout from SSH
In-Reply-To: <1614.217.162.71.141.1091552632.squirrel@217.162.71.141>
References: <1614.217.162.71.141.1091552632.squirrel@217.162.71.141>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 01:03 PM 8/3/2004, you wrote:
>Hello list,
>
>I am writing a program in C# that calls some cygwin programs and redirects
>the standard output and error to a textbox. This works excellent with
>calls like "ls -al" or rsync.
>
>However, I cannot read the output generated by SSH. When I issue a command
>like "ssh user@host ls -al" I can observe some network action but the
>application stalls, uses 100% CPU and never spits out something. The same
>command in the cygwin shell executes with the result expected. Since I use
>public key authentication SSH is not waiting for any login information.
>
>Is this a configuration issue of SSH? Thanks for any help. Dave.


Not AFAICS.  A small C program that invokes Cygwin's 'ssh' via 'system()'
with 'ls -al' works fine for me.  Does that work for you?


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

