coding_new has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NET::OpenSSH not working...
by Corion (Patriarch) on Jun 30, 2010 at 19:58 UTC | |
by coding_new (Sexton) on Jun 30, 2010 at 20:15 UTC | |
by coding_new (Sexton) on Jun 30, 2010 at 20:26 UTC | |
|
Re: NET::OpenSSH not working...
by salva (Canon) on Jun 30, 2010 at 20:05 UTC | |
by Anonymous Monk on Jun 30, 2010 at 21:05 UTC |