Questions tagged [fexpect]

Fexpect is a python library based on fabric and pexpect to automate commandline input

Fexpect on Github

3 questions
13
votes
4 answers

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 expect, expecting, run (...) def install_postgresql(profile): print("!!! Installing PostgreSQL...") print(' -> Doing…
mitchkman
  • 6,201
  • 8
  • 39
  • 67
2
votes
1 answer

Having issues getting fexpect to catch the prompt

I don't seem to be getting the expected workings. I can't seem to actually catch the prompt. Here is what I have: with settings(hide('commands', 'warnings') , warn_only=True): prompts = expect('Are you sure you want to perform this operation?…
Ecogeek
  • 23
  • 3
1
vote
1 answer

fexpect breaks fabric scripts

I hot upon an requirement where I needed to automatically answer the prompt on remote machine and then I found fexpect after reading different stackoverflow questions. But the moment I include fexpect in my script it breaks the whole…
Keshav Agrawal
  • 577
  • 9
  • 23