Bonjour,

J'ai un ptit pb avec un script qui ne fonctionne pas. Pouvez-vous m'aider ?


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
use Net::SSH::Perl;
my $ssh = Net::SSH::Perl->new(Host => 'xxx.xxx.xxx.xxx');
$ssh -> login('','');
my($stdout,$stderr,$exit) = $ssh -> cmd('sh arp');

msg d'error:

Odd number of elements in hash assignment at D:/Debian/lib/Net/SSH/Perl.pm line
36.
Use of uninitialized value $ENV{"HOME"} in concatenation (.) or string at D:/Deb
ian/lib/Net/SSH/Perl.pm line 108.
Net::SSH: Bad host name: Host at tt2.pl line 3
Merci de votre aide -