Top "Expect" questions

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

Expect regex number pattern

I'm having this poblem with a expect script. I want to capture when the output of a command is "0" and …

regex linux unix expect
How to use a linux expect script to enter answer a prompt for password

I am having some trouble writing a script that will launch my forticlient vpn command line client and send my …

linux command-line expect
How to make expect command in expect program script to wait for exact string matching

I want to know how to make expect command in expect script to wait for exact string to be matched …

shell unix scripting sh expect
How to use expect inside bash script

Could anybody please tell me why this is not working? #!/bin/bash cd /home touch somefile /usr/bin/expect<&…

bash expect
Using two interact in a Expect script

I'm trying to write a script that connects to a Linux box via SSH and allows interactive control of Cisco …

linux bash expect
How to quote a shell variable in a TCL-expect string

I'm using the following awk command in an expect script to get the gateway for a particular destination route | grep $…

awk expect
How to check if a variable is set in expect script?

I am doing something like this: #!/usr/bin/expect -f if {$out != ""} { send_user $out } But it doesn't work. Error …

tcl expect
Expect-like tool for windows

I am searching for a tool that behaves similarly to Unix's expect tool (or at least, its main function). I …

command-line batch-file expect
Embedding an Expect script inside a Bash script

I have the following script: #!/bin/bash if [ `hostname` = 'EXAMPLE' ] then /usr/bin/expect << EOD spawn scp -rp …

bash expect
SSH in Java App with 'expect' like functionality

With 'expect', one can execute SSH commands and parse the output of those commands to alter program flow. I'd like …

java ssh expect