09 Nov 2009 01:52:05 UTC
- Distribution: IPC-ShellCmd
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Testers (397 / 0 / 73)
- KwaliteeBus factor: 7
- 8.13% Coverage
- License: perl_5
- Perl: v5.8.4
- Activity24 month
- Download (31.17KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userBOBTFISH Tomas Doranand 1 contributors
- Matthew Byng-Maddick <firstname.lastname@example.org>
IPC::ShellCmd::SSH - Chain ssh-ing to a host before running the command
$cmd_obj->chain_prog( IPC::ShellCmd::SSH->new( User => 'cpanbuild', Host => '10.0.0.1' ) );
The only external method for this is the constructor. This sets up the various arguments that are going to be used to generate the command-line.
The only required argument is the host.
- Host REQUIRED
Specifies the host to ssh to. Since this is done by invoking the command-line ssh client, this can be a short hostname that is part of the local ssh config.
Specifies the username on the remote host
Specifies the port to connect to on the remote host
If specified, then if true will enable agent forwarding (say for dealing with a bastion host), and if false will explicitly disable it. If not specified it will be the ssh default.
If specified, then if true will enable X11 forwarding, and if false will disable it. If not specified, this will be the ssh default.
If specified, then if true will force allocation of a tty, and if false will disable it. If not specified, this will be the ssh default.
Specifies the ssh private key to use.
I don't know of any, but that doesn't mean they're not there.
See IPC::ShellCmd for authors.
See IPC::ShellCmd for the license.
Module Install Instructions
To install IPC::ShellCmd, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install IPC::ShellCmd
For more information on module installation, please visit the detailed CPAN module installation guide.