Subject: | SFTP errors |
Hi,
I am getting the following error when i am trying to use the SFTP
module.
Error: Can't set socket non-blocking: Bad file descriptor
at :/PXPerl/site/lib/Net/SSH/Perl.pm line 213, <GEN0> line 1.
The script look like
use Net::SFTP;
$ftp = Net::SFTP->new($host) or die "Cannot connect to $host";
$ftp->cwd($data_dir) or die "Cannot change working directory ";
$ftp->get($file_name) or die "get failed ", $ftp->message;
$ftp->quit;
Version details :
This is perl, v5.8.7 built for MSWin32-x86-multi-thread
Copyright 1987-2005, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5
source kit.
Complete documentation for Perl, including FAQ lists, should be found
onthis system using `man perl' or `perldoc perl'. If you have access
to the Internet, point your browser at http://www.perl.org/, the Perl
Home Page.
OS : Windows Xp
Thanks,
Sreedhar.