CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
"Can't set socket non-blocking" error

 



hem
User

Apr 30, 2009, 11:39 AM

Post #1 of 1 (1495 views)
"Can't set socket non-blocking" error Can't Post

Hi

Any ideas how to get past this :


C:\Perl\SSh>perl SSh.pl
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Fas
tCalc at C:/Perl/site/lib/Crypt/DH.pm line 6
Can't set socket non-blocking: Bad file descriptor at C:/Perl/site/lib/Net/SSH/P
erl.pm line 217.

Script:
use Net::SSH::Perl;
my $host = "abc";
$user = "abcd";
$pass = "abcde";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
$cmd = "ls -l";
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
print "All $stdout, $stderr, $exit\n";

Code



      
    

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives