Skip Menu |

This queue is for tickets about the SSH-RPC CPAN distribution.

Report information
The Basics
Id: 49541
Status: resolved
Priority: 0/
Queue: SSH-RPC

People
Owner: Nobody in particular
Requestors: dmcgarry [...] imagicity.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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/
This is all fixed in the 1.201 version I'm uploading to CPAN tonight. I'm sorry for putting out a broken module. I was showing people how to release a module to CPAN, and I released the module broken. Then I didn't have time to get back to it until now.