Top "Expect" questions

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

Use Expect in a Bash script to provide a password to an SSH command

I'm trying to use Expect in a Bash script to provide the SSH password. Providing the password works, but I …

linux bash ssh expect
How to pass argument in Expect through the command line in a shell script

I am passing argument in Expect through the command line in a shell script. I tried this #!/usr/bin/expect …

linux bash shell expect
What are the best ways to automate a GDB debugging session?

Does GDB have a built in scripting mechanism, should I code up an expect script, or is there an even …

scripting automation gdb expect
Using conditional statements inside 'expect'

I need to automate logging into a TELNET session using expect, but I need to take care of multiple passwords …

bash automation telnet expect conditional-statements
Using expect to pass a password to ssh

How can I use expect to send a password to an ssh connection. say the password was p@ssword and …

ssh cygwin expect
Bash/Expect Script for SSH

I am new to Expect and scripting in general. I am trying to make a few scripts to make my …

bash ssh expect
Read file into String and do a loop in Expect Script

What I am trying to do is to: Create a .exp file, which will read from the *.txt file from …

shell unix loops tcl expect
Simplest way to run an Expect script from Python

I'm trying to instruct my Python installation to execute an Expect script "myexpect.sh": #!/usr/bin/expect spawn ssh usr@…

python ssh subprocess expect
Expect within a Bash script

I wrote a Bash script with Expect within, to connect to a terminal server and clear lines. I am unable …

bash expect
use expect to spawn command with arguments containing spaces

I want to use expect to run a simple command cat /tmp/id_rsa.pub over ssh. In a shell, …

bash automation automated-tests expect