SSH::RPC::Shell - The shell, or server side, of an RPC call over SSH.
version 1.204
To make your own shell with it's own methods:
package MyShell; use base 'SSH::RPC::Shell'; sub run_time { my ($class, $args) = @_; return { status => 200, response => time(), }; } 1;
To create a usuable shell:
#!/usr/bin/perl use strict; use MyShell; MyShell->run();
SSH::RPC::Shell allows you to quickly implement your own shells that are remotely callable with SSH::RPC::Client.
The following methods are available from this class.
Class method. This method is executed to invoke the shell.
Class method. This subroutine just returns a successful status so you know that communication is working.
------------------------------------------------------------------- SSH::RPC::Client is Copyright 2008-2009 Plain Black Corporation and is licensed under the same terms as Perl itself. ------------------------------------------------------------------- http://www.plainblack.com info@plainblack.com -------------------------------------------------------------------
To install SSH::RPC::Shell, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SSH::RPC::Shell
CPAN shell
perl -MCPAN -e shell install SSH::RPC::Shell
For more information on module installation, please visit the detailed CPAN module installation guide.