< Home - < Back

pexpect


Information about the package, pexpect, which is shipped with common Linux distributions. The pexpect package is designed for, Pure Python Expect-like module.


Package Name:

pexpect

Summary:

Pure Python Expect-like module

Description:

Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output. Pexpect works like Don Libes' Expect. Pexpect allows your script to spawn a child application and control it as if a human were typing commands. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to automate setup scripts for duplicating software package installations on different servers. And it can be used for automated software testing. Pexpect is in the spirit of Don Libes' Expect, but Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect does not require TCL or Expect nor does it require C extensions to be compiled. It should work on any platform that supports the standard Python pty module.

Architecture:

noarch

Version:

2.3

Release:

6.el6

Size:

147 k

Repository:

base

From Repository:

Licence:

MIT



Handy Yum Commands for pexpect


Control the pexpect package with the following handy commands outlined below.


Command

Description of Command

yum install pexpect

This command will install pexpect on the server.

yum remove pexpect

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

yum -y remove pexpect

This command will un-install pexpect 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 pexpect when using the -y flag.

yum update pexpect

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

yum -y update pexpect

This command will update pexpect 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 pexpect when using the -y flag.

yum info pexpect

This command will show you core information about the pexpect package.

yum deplist pexpect

This command will show you the dependencies for pexpect. 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 pexpect

This command will check if there is an update waiting on pexpect. 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.