Subject: Re: Executing ssh from perl
From: "Gerrit P. Haase" <[email-masked]>
To: Stephen Studley <[email-masked]>
Cc: [email-masked]
Date: Sat, 20 Nov 2004 01:30:24 +0100

Stephen Studley wrote:

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

$ perl -we 'my $str=`ssh -n gerrit\@sourceware.org ls`;print "[$str]\n"'
Enter passphrase for key '/home/gerrit/.ssh/id_dsa':
[get-andrew.sh
libxslt
startup-notification
unison
]

Works for me too if it succeeds.

Gerrit
-- 
=^..^=

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