Top "Expect" questions

Expect is a Unix/Linux extension for the Tcl scripting language.

Terminating spawn sessions in expect

I'm trying to address an issue with an Expect script that logs into a very large number of devices (thousands). …

session tcl expect telnet spawn
expect script to ssh returns invalid command name

I am trying to write an expect script which would ssh into a server, send sudo su, then check the …

expect
Any difference between "send_user" and "puts" in Expect?

I've been using Expect for a few years, but still it's not clear to me if send_user is the …

tcl expect
How to get expect -c to work in single line rather than script

Running: my_machine~/opt/ams/data/ep/success$ expect -c "spawn /usr/bin/scp xmlEventLog_2010-03-22T14-28-36_…

shell command-line scp expect
Capture output from ssh with expect script

I want to capture the output of my expect script in a file.txt. #!/usr/bin/expect -f match_max 10000 …

ssh output send expect cisco
expect script + how to ignore strings if not appears

I write the following expect script in order to automate ssh login to remote Linux machine And run the command "…

linux bash shell expect tk
How can I use Expect to enter a password for a Perl script?

I wish to automatically enter a password while running an install script. I have invoked the install script using the …

perl expect
What is the difference between spawn and exec?

I'm learning to write a TCL (expect) scripts and I notice that some examples show to use spawn, while others …

scripting exec tcl expect spawn
How can I flush the input buffer in an expect script?

I'm writing an Expect script and am having trouble dealing with the shell prompt (on Linux). My Expect script spawns …

ksh expect
Using 'expect' to automatically send in password

I am trying to copy a file from my remote server to my local. Here's my script to run it, …

linux bash shell scp expect