delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/18/19:11:30

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: Thu, 18 Nov 2004 15:53:28 -0800
From: Stephen Studley <sstudley AT adobe DOT com>
Subject: Re: Executing ssh from perl
In-reply-to: <Pine.GSO.4.61.0411181627330.17559@slinky.cs.nyu.edu>
X-Sender: sstudley AT mailsea DOT sea DOT adobe DOT com
To: cygwin AT cygwin DOT com, pechtcha AT cs DOT nyu DOT edu
Message-id: <p06100516bdc2e4e1d4ae@[153.32.225.133]>
MIME-version: 1.0
References: <p0610050abdc2a0cde006@[153.32.225.133]> <Pine DOT GSO DOT 4 DOT 61 DOT 0411181407420 DOT 17559 AT slinky DOT cs DOT nyu DOT edu> <p0610050bbdc2adfcf70d@[153.32.225.133]> <Pine DOT GSO DOT 4 DOT 61 DOT 0411181537080 DOT 17559 AT slinky DOT cs DOT nyu DOT edu> <p0610050ebdc2bb230c14@[153.32.225.133]> <Pine DOT GSO DOT 4 DOT 61 DOT 0411181627330 DOT 17559 AT slinky DOT cs DOT nyu DOT edu>
X-IsSubscribed: yes

one very interesting discovery. If the command fails, it returns! It 
would appear it hangs only when the command succeeds. If I mangle the 
path to the ls command, ssh returns with file not found.

At 4:30 PM -0500 11/18/04, Igor Pechtchanski wrote:
>On Thu, 18 Nov 2004, Stephen Studley wrote:
>  > At 3:39 PM -0500 11/18/04, Igor Pechtchanski wrote:
>I suppose the next step is to try to reproduce this in a command-line perl
>invocation, e.g., something like
>
>perl -we 'my $str=`ssh -n user\@machine.domain ls`;print "[$str]\n"'

good idea, however same results, at least from my Windows machine.
The command-line perl works fine from my OSX machine.

>and see what messages that produces.  I assume it's working for you from a
>Linux machine...  Also, I don't believe you've said anything about your
>system configuration -- please review <http://cygwin.com/problems.html>
>and provide the requested information.

The machine I'm ssh'ing from is a new Dell PWS 650, Windows XP Pro, 
Version 2002, Service Pack 2. (the sp2 firewall is disabled) I've 
installed the latest Cygwin env.

The remote machines are not quite as new with regard to hardware, 
they are however, running the same OS and cygwin.

Perl is 5.8.0.810
OpenSSH is OpenSSH_3.9p1

Stephen

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