Using perl Syntax Highlighting
#
!/usr/bin/perl
use Net::SSH::Perl;
$host= "laipdelserver";
$user="miusuario";
$pass="xxxxxx";
$cmd="ls -l";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
!/usr/bin/perl
use Net::SSH::Perl;
$host= "laipdelserver";
$user="miusuario";
$pass="xxxxxx";
$cmd="ls -l";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
Coloreado en 0.003 segundos, usando GeSHi 1.0.8.4
El error que recibo ese el siguiente
Can't locate Math/Pari.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Util/SSH2MP.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Util/SSH2MP.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Util.pm line 56.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Kex/DH1.pm line 10.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Kex.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Kex.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/SSH2.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/SSH2.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Net/SSH/Perl.pm line 54.
Se habrá instalado mal el modulo una vez, que lo instale nuevamente, hay algun error sintáctico en el script... cerrar algo...
Bueno quedo a la espera de sus sugerencias
Un saludo