I have downloaded all the necessary packages (I believe), for trying to run OpenSSH a simple OpenSSH script. However everytime I try to run it, or output the warnings, below is what I am getting.
I have looked at this, and think that the issue may lie as suggested in the warning in the OpenSSH.pm file...? Is that right, or am I way off base on this? Thanks for your help...
use Net::OpenSSH; my $host = 'server'; my $userid = 'userid'; my $pass = 'password'; my $ssh = Net::OpenSSH->new('$host');
Here is the warning output:
Subroutine Cwd::fastcwd redefined at C:/Perl/lib/Cwd.pm line 753.
Subroutine Cwd::getcwd redefined at C:/Perl/lib/Cwd.pm line 753.
Subroutine Cwd::abs_path redefined at C:/Perl/lib/Cwd.pm line 753.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Use of uninitialized value in anonymous hash ({}) at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Odd number of elements in anonymous hash at C:/Perl/site/lib/Net/OpenSSH.pm line 196.
Line 196 is the following in the OpenSSH.pm file
_home => do { local $SIG{__DIE__}; local $SIG{__WARN__}; local $@; eval { Cwd::realpath((getpwuid $>)[7]) } },
I have Net-OpenSSH V.38 with ActivePerl version 5.8.9.826
In reply to NET::OpenSSH not working... by coding_new
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |