Top "Pexpect" questions

Pexpect is a pure Python module that reads the output of a program and sends input to that program based on output patterns.

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

I am using Python3.6, when I try to install "modules" using pip3, I am facing the below mentioned issue "pip …

python pip pexpect
Python how to read output from pexpect child?

child = pexpect.spawn ('/bin/bash') child.sendline('ls') print(child.readline()) print child.before, child.after All I get …

python pexpect
python libraries for ssh handling

I'm going to write first code for handling ssh commands on python and I did search over the stackoverflow and …

python ssh libraries paramiko pexpect
ImportError: No module named pexpect

I am using Fabric and would like to use fexpect. I have the following Python script: from ilogue.fexpect import …

python fabric pexpect fexpect
reading output from pexpect sendline

I have pexpect working, but I am having problems printing the output back from it. In my test script below, …

python ssh sudo pexpect
pexpect timeout is not being used, only the default of 30 is being used

I'm trying to do a lengthy operation but pexpect with the timeout argument doesn't seem to change the length of …

python pexpect
Python pexpect - TIMEOUT falls into traceback and exits

I'm new to python-pexpect. In Tcl/expect when I hit a timeout - I would respond with message and exit …

python python-2.7 pexpect
execute a shell-script from Python subprocess

I need to call a shellscript from python. The problem is that the shellscript will ask a couple of questions …

python subprocess pexpect
python pexpect sendcontrol key characters

I am working with pythons pexpect module to automate tasks, I need help in figuring out key characters to use …

python key character pexpect
Multiple inputs and outputs in python subprocess communicate

I need to do something like this post, but I need to create a subprocess that can be given input …

python subprocess stdout stdin pexpect