Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 want to automate command-line interactive programs with it.

EDIT: I am preferring single executables or small apps without big multi megabyte depencies.

Ty.

like image 261
majkinetor Avatar asked Aug 14 '09 07:08

majkinetor


People also ask

Does Expect work on Windows?

The Windows port of Expect is also known to have issues with changes made to cmd.exe with Windows 8, 8.1, and Windows 10. The last patch for Expect fixed a problem on Windows 7, so that's the last version of Windows which is compatible with the Windows port.

How do you install Expect on Windows?

Steps to start Expect on Windows:Go to Bin directory in Command prompt (Start > Run > Command > cd c:\Tcl\bin) Issue the command C:\Tcl\bin>teacup install Expect. Done!!

What is Expect for Windows?

ActiveState Expect for Windows is a tool for automating access to interactive applications.

What is Expect Tool?

Expect is a UNIX scripting and testing utility which can be used with SSH-based applications, like the Oracle VM CLI. Expect scripts can have any file name suffix you like, though they generally have an .exp extension. This guide and the sample scripts use either the .sh or no extension on Expect script file names.


3 Answers

Take a look at ActiveState's Tcl distribution which has a port of Expect for Windows.

like image 95
ars Avatar answered Oct 20 '22 09:10

ars


Late answer: Expect.exe, compiled with Go, running Lua-scripts. Fairly new, but does exactly what it is supposed to do. See https://github.com/zetamatta/expect/

Check the closed issues as well.

like image 33
Jan Ehrhardt Avatar answered Oct 20 '22 11:10

Jan Ehrhardt


I guess AutoIt is what you need.

like image 44
Helen Avatar answered Oct 20 '22 10:10

Helen