Questions tagged [expect]

Expect is a utility based on TCL. It's primary use is for building automation into interactive environments such as telnet or ssh based terminal environments.

It provides the ability to enter commands on a command line and interpret the output.

Expect adds many extensions to the Tcl scripting language which simplify scripting interactive applications controlling such hard-to-interact programs such as telnet, ftp, passwd, fsck, rlogin, tip, ssh, and others. Expect/tcl can run a GUI interface or run from the command line. Since Tcl is a full featured programming language, Expect can easily interact with databases, webservers, etc. with intuitive, powerful, and easy-to-anticipate processing.

Expect is in the public domain. There is full support for Linux and Windows.

Overview and history website: http://www.nist.gov/el/msid/expect.cfm
Support and download website: http://expect.sourceforge.net/
FAQs website: http://expect.sourceforge.net/FAQ.html

61 questions
0
votes
0 answers

Simple Expect program to send a key when the program yields some text

I need to run this program: Luis@Windu /cygdrive/c/Temporal/Expect$ oclhashcat64 ../Test.hccap -m 2500 -a 3 ?d?d?d?d?d?d?d?d oclHashcat v1.31 starting... Device #1: Bonaire, 1024MB, 1050Mhz, 12MCU Device #2: Tahiti, 3072MB, 900Mhz, 28MCU Hashes: 1…
0
votes
0 answers

How to display output from expect?

I'm trying to read data from a machine that uses a telnet style interface using expect. An interactive telnet session works like this: % telnet 10.92.177.14 53595 Trying 10.92.177.14... Connected to 10.92.177.14. Escape character is…
Elliott B
  • 1,205
0
votes
1 answer

Using expect to try a series of passwords

I'm completely new to using "expect" and clearly don't understand it at all well. My problem is that I used "encfs" to protect some files a while ago, and although I left myself a text file which included obfuscated hints about the password, I'm…