SSH on windows
am 11.09.2007 03:48:54 von gilHi,
In the last week I'm trying to use Net::SSH unsuccessfully (Windows).
when trying to compile:
use Net::SSH;
my $ssh = new Net::SSH($host, [options]);
$ssh->login('user', 'pass');
my ($out, $err, $exit) = $ssh->cmd('ls');
I receive (after editing Perl.pm) :
Global symbol "$home" requires explicit package name at C:/usr/Perl/
site/lib/Net
/SSH/Perl.pm line 112.
Compilation failed in require at C:/usr/Perl/site/lib/Net/SFTP.pm line
11.
BEGIN failed--compilation aborted at C:/usr/Perl/site/lib/Net/SFTP.pm
line 11.
Compilation failed in require at hello.pl line 3.
BEGIN failed--compilation aborted at hello.pl line 3.
*when I change the value of $home, I receive other errors.
When using Net::SSH::W32Perl, I get some other endless line of errors.
Did some one succeed using SSH on windows???? if yes, which packages
should I use?
Thanks,
Gil