Questions tagged [autoexpect]
6 questions
7
votes
2 answers
Is there autoexpect for pexpect?
I would like to generate Python Expect (pexpect) code automatically, does something like autoexpect exist for pexpect?

Jed Daniels
- 24,376
- 5
- 24
- 24
4
votes
1 answer
Is there autoexpect for Perl's Expect?
I would like to generate Perl Expect code automatically, does something like autoexpect exist for Perl's Expect??

Ville M
- 2,009
- 7
- 30
- 45
4
votes
2 answers
unable to use autoexpect
I am using autoexpect for the first time. I am not sure what should be the parameters for using it. I executed autoexpect command and there were continuous messages "autoexpect started, file is script.exp". If I execute ssh nothing happens.…

user1851206
- 61
- 1
- 4
2
votes
1 answer
autoexpect on docker centos6.6 container cannot work
Docker container
pure image: centos6.6
after bash, I install these:
yum -y install tar zip unzip expect glibc.i686
Package expect-5.44.1.15-5.el6_4.x86_64 already installed and latest version
and run autoexpect, I always get these…

MJL
- 1,235
- 2
- 10
- 6
0
votes
1 answer
Expect: How does one export the executing environmt to the runtime environment? (where keys are sent)
I have tried the following:
set timeout -1
spawn $env(SHELL)
match_max 100000
send -- "ssh somewhere@addr"
expect "*"
for { set i 0 } { $i < [array size env] } { incr i } {
send -- "echo env($i) = $env($i)"
expect "*"
}
send -- "env >…

Chris
- 28,822
- 27
- 83
- 158
-1
votes
2 answers
How to use expect to execute a jar and continuously hit enter?
To start from the beginning, I'm using ansible to open a Jar file in a linux environment.
Basically I do: java -jar someJarFile.jar, and it opens in command line.
Now, it prompts me with several questions which can be passed by hitting Return…

Mark
- 49
- 4