RE: [Ssh-sftp-perl-users] Problem with Net::SFTP
Brought to you by:
dbrobins
From: David R. <dr...@at...> - 2005-02-28 19:29:06
|
The error is from Net::SSH::Perl, and I'm not sure why you're getting = it; according to CPAN the IO::Handle::blocking method is certainly = present in perl 5.8.0 and 5.8.1 (and earlier; IIRC I checked it for 5.6 = since the module requires 5.6). Could you try adding 'use IO::Handle;' before 'use Fcntl;' in the = Net::SSH::Perl module (your /Library/Perl/5.8.1/Net/SSH/Perl.pm) = temporarily and seeing if the error goes away? I can do a login without = needing that so I'm not sure how your environment's different, but that = may be what's lacking. My test code (which will definitely hit the blocking() call): perl -MNet::SSH::Perl -we = '$a=3DNet::SSH::Perl->new(<host>);$a->login(<user>,<password>);print = $a->cmd("ls")' (which warns about printing the undef value but otherwise works as = expected). Thanks, -----Original Message----- From: ssh...@li... on behalf of Matt = Adams Sent: Mon 2/28/2005 2:06 PM To: ssh...@li... Cc:=09 Subject: [Ssh-sftp-perl-users] Problem with Net::SFTP Hi there: This might be a Net::SSH::Perl question but I'm getting this error when=20 I use Net::SFTP so I'll try here and see if anyone has any suggestions. I wrote a small script to transfer files between two drop locations=20 using Net::SFTP but get the following error when trying to connect to=20 the remote host: Can't locate object method "blocking" via package "IO::Handle" at=20 /Library/Perl/5.8.1/Net/SSH/Perl.pm line 212. FWIW, I'm using Perl v5.8.1-RC3 on Mac OS X 10.3.8. Any suggestions as to how I might go about resolving this would be=20 greatly appreciated. Thanks in advance, Matt ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |