Hi Folks,
        I have downloaded the tar.gz module from CPAN to ssh a remote unix
machine. After the same i run the >>perl makefile.pl and below was the
output of the command
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Warning: prerequisite Convert::ASCII::Armour 1.4 not found.
Warning: prerequisite Data::Buffer 0.04 not found.
Warning: prerequisite Digest::BubbleBabble 0.01 not found.
Warning: prerequisite IO::Select::Trap 0.02 not found.
Warning: prerequisite Net::SSH::Perl 1.23 not found.
Writing Makefile for Net::SSH::W32Perl
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

After the above i wrote the below code
++++++++++++++++++++++++++++++++++++++++
use Net::SSH::W32Perl;

my $host = 'xxx.xxx.xxx.xxx';
my $ssh = new Net::SSH::W32Perl($host, [options]);
$ssh->login('****', '****');
my ($out, $err, $exit) = $ssh->cmd('cat', 'Hello Net::SSH::W32Perl User!');

print $out;
++++++++++++++++++++++++++++++++++++++++++

When i run the above code i get the below error

-----------------------------------------------------------------------------------------------------------------------
Can't locate Net/SSH/Perl.pm in @INC (@INC contains: D:/Perl/lib
D:/Perl/site/li
b .) at D:/Perl/lib/Net/SSH/W32Perl.pm line 8.
BEGIN failed--compilation aborted at D:/Perl/lib/Net/SSH/W32Perl.pm line 8.
Compilation failed in require at sshtest.pl line 5.
BEGIN failed--compilation aborted at sshtest.pl line 5.
-----------------------------------------------------------------------------------------------------------------------

Thanks in Advance

Regards
Mazhar

Reply via email to