Subject: | NET::SSH::PERL -Your vendor has not defined Fcntl macro F_SETFL, used at C:/Perl/site/lib/Net/SS |
HI, I would require help with Net::ssh::perl module. Please let me know
if any one worked with this module.
=========Script==============
use Net::SSH::Perl;
$test="10.58.121.6 10.58.121.8" ;
@nodename=split( ' ', $test );
foreach $hostname (@nodename) {
$ssh = Net::SSH::Perl->new($hostname, port => 22);
print "$hostname ";
$ssh->login("osdss", "sis");
chomp ( my $cmd = 'prtpicl -v -c temperature-sensor | grep Temperature |
awk \'{ a = $2 ; getline ; b = $2 ; getline ; print "CPU:"a"
CASE:"b}\'');
my($out, $err) = $ssh->cmd($cmd || "ls -l");
print $out;
$ssh->cmd("exit");
}
==============DONE=========================
==========ERROR=========================
D:\LEARN\PERL>perl ss1.pl
Math::BigInt: couldn't load specified math lib(s), fallback to
Math::BigInt::Cal
c at C:/Perl/site/lib/Crypt/DH.pm line 6
Your vendor has not defined Fcntl macro F_SETFL, used at
C:/Perl/site/lib/Net/SS
H/Perl.pm line 214.