Top "Expect" questions

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

expect script to automate telnet login

I have been trying to create an expect script to automatically login to my device through telnet If there are …

telnet expect
How to use Bash script variables in Expect conditional statements

I am writing a Bash script and using Expect to do sftp. Now in the Expect block I want to …

bash expect
How can I make an expect script prompt for a password?

I have an expect script that connects to a few routers through ssh. All these routers have the same password (…

passwords prompt expect
How to automate telnet session using Expect?

I'm trying to write an expect script to automate telnet. This is what I have so far. #!/usr/bin/expect # …

linux telnet expect
Tcl + Check file existence

I'm trying to check if a file exists or not in Tcl, but I can't seem to get a true …

file tcl expect file-exists
Spawn command not found

I have an error trying to run a .sh file line 2: spawn: command not found ": no such file or directory …

bash shell command expect spawn
How to store output in a variable while using expect 'send' command

Thanks. But the account and password are needed. So I must send them and then send ovs-vsctl command. the scripts …

tcl output send expect
How to use Expect in a Bash script

I am trying to write a script that pulls the latest version of my software from a Git repository and …

bash expect
How to give password in shell script?

In a shell script file I am using some commands like scp and make install which ask for my password. …

linux shell scripting expect
Why is my expect script failing on line 1?

The very first line of my expect script fails. Here are the entire contents of my script and it fails: #!/…

bash expect bin