Top "Expect" questions

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

Is there an Expect equivalent gem for Ruby?

Is there an Expect equivalent gem for Ruby? I tried searching on code.google and rubygems.org, but sadly it …

ruby expect
how to check if a host is in your known_host ssh

I have the following command works in my script that adds the host to the known hosts in ssh. VAR2=$(…

bash shell ssh expect
how to set an expect variable with output of shell command

I want to set a variable b in expect file,here initially i did ssh to a machine through this …

linux bash shell variables expect
expect command is not working in bash script

I have a problem related to expect. when i run abc.sh which includes following lines #!/usr/bin/expect spawn …

expect spawn
How to wait for a process to complete using tcl-expect

I am writing a script using expect in which I have to rlogin to some host & after that I …

shell tcl expect
How to start a shell script within "expect script"?

In this expect script there will be no ssh server connected, I just want to execute a ".sh" file locally, …

expect
how to clean up the previous expect_buf in an expect script

I've written a expect function to get the output of a command and my code is like below proc do_…

tcl expect
How do I tell expect that I have finished the interactive mode?

I am writing some expect commands in bash. Script: #!/bin/bash set timeout -1 expect -c " spawn telnet $IP $PORT1 …

expect
Expect - Interrupt program - Ctrl+C

I am running the following script to start a capture on a remote server and download the file afterwards. Currently …

linux ssh scripting tcl expect
How to use expect with optional prompts?

Let's say I am trying to write an expect script for a test.sh that has three prompts: prompt1, prompt2, …

linux bash expect