After successfully establishing a SSH connection I use the following code
snippet, variations of which have been posted many places.
my $chan = $ssh2-channel();
$chan-shell();
$chan-blocking(0);
my ($len, $buf);
$chan-write(ls\n);
select(undef,undef,undef,0.25);
print
try something like
print $buf while (($len = $chan-read($buf,512))||0) 0);
Thank you for the suggestion. Unfortunately, it get the same error warning
Use of uninitialized value in numeric gt () at SFTP_test2.pl line 21
___
Perl-Win32-Users
I have read through the posting archives trying to find a current solution
to getting SFTP to work under WinXP with no luck. Old posting suggest using
PPM and setting the ppm repository to http://www.soulcage.net/ppds and then
installing Net-SSH-W32Perl followed by Net-SFTP. I have done this
See
http://sourceforge.net/mailarchive/forum.php?thread_name=B79AAF213B0C1F41B49E97CA0850C72901AEABBF%40EXCHANGE1.experian-scorex.comforum_name=ssh-sftp-perl-users
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To
http://search.cpan.org/~dbrobins/Net-SSH2-0.18/lib/Net/SSH2/SFTP.pm
Ah - ha! I gave it a try and after a couple of false starts I got it going.
It is a much cleaner solution than modifying the other modules to handle
W32Perl.
Thanks!!!
___