< Home - < Back

perl-Net-SSH-Expect


Information about the package, perl-Net-SSH-Expect, which is shipped with common Linux distributions. The perl-Net-SSH-Expect package is designed for, Net-SSH-Expect - SSH wrapper to execute remote commands.


Package Name:

perl-Net-SSH-Expect

Summary:

Net-SSH-Expect - SSH wrapper to execute remote commands

Description:

This module is a wrapper to the *ssh* executable that is available in your system's *$PATH*. Use this module to execute commands on the remote SSH server. It authenticates with the user and password you passed in the constructor's attributes "user" and "password". Once an ssh connection was started using the "connect()" method it will remain open until you call the "close()" method. This allows you execute as many commands as you want with the "exec()" method using only one connection. This is a better approach over other ssh wrapper implementations, i.e: Net::SCP, Net::SSH and Net::SCP::Expect, that start a new ssh connection each time a remote command is issued or a file is transfered. It uses *Expect.pm* module to interact with the SSH server. A "get_expect()" method is provided so you can obtain the internal "Expect" object connected to the SSH server. Use this only if you have some special need that you can't do with the "exec()" method. This module was inspired by Net::SCP::Expect <http://search.cpan.org/~djberg/Net-SCP-Expect-0.12/Expect.pm> and by Net::Telnet and some of its methods work the same as these two modules.

Architecture:

noarch

Version:

1.09

Release:

7.el6

Size:

28 k

Repository:

epel

From Repository:

Licence:

GPL+ or Artistic



Handy Yum Commands for perl-Net-SSH-Expect


Control the perl-Net-SSH-Expect package with the following handy commands outlined below.


Command

Description of Command

yum install perl-Net-SSH-Expect

This command will install perl-Net-SSH-Expect on the server.

yum remove perl-Net-SSH-Expect

This command will un-install perl-Net-SSH-Expect on the server. When you run this command, you will be asked if you are sure that you want to remove perl-Net-SSH-Expect, so you have to manually confirm that you want to do this.

yum -y remove perl-Net-SSH-Expect

This command will un-install perl-Net-SSH-Expect on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-Net-SSH-Expect when using the -y flag.

yum update perl-Net-SSH-Expect

This command will update perl-Net-SSH-Expect to the latest version. When you run this command, you will be asked if you are sure that you want to remove perl-Net-SSH-Expect, so you have to manually confirm that you want to do this.

yum -y update perl-Net-SSH-Expect

This command will update perl-Net-SSH-Expect to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-Net-SSH-Expect when using the -y flag.

yum info perl-Net-SSH-Expect

This command will show you core information about the perl-Net-SSH-Expect package.

yum deplist perl-Net-SSH-Expect

This command will show you the dependencies for perl-Net-SSH-Expect. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update perl-Net-SSH-Expect

This command will check if there is an update waiting on perl-Net-SSH-Expect. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.