Subject: | Runtime errors in time sample script + POD inaccuracies |
Date: | Wed, 09 Sep 2009 15:43:44 +1100 |
To: | bug-SSH-RPC [...] rt.cpan.org |
From: | Dan McGarry <dmcgarry [...] imagicity.com> |
The time client script dies at runtime with the following error:
Can't locate object method "ssh" via package "SSH::RPC::Client" at
/usr/local/share/perl/5.10.0/SSH/RPC/Client.pm line 92.
Changing line 92 of Client.pm from this:
my $ssh = $self->ssh;
to this:
my $ssh = $ssh{id $self};
Allows the script to run, but it then fails with a bash error:
-bash: line 2: args : commande introuvable
(i.e. command not found)
That leads me to guess that there is no communication happening with the
server script on the remote host.
In addition to this the POD documentation for SSH::RPC::CLient is
misleading. The line stating:
my $rpc = SSH::RPC::Shell->new($host, $user);
should (obviously) be:
my $rpc = SSH::RPC::Client->new($host, $user);
--
Dan McGarry dmcgarry@imagicity.com
Writing: http://scriptorum.imagicity.com/
Photos: http://www.imagicity.com/