All apps/Expect

Expect

expect

A tool for automating interactive programs through scripted dialogue.

Runs as expect|macOS, Linux, Windows|core.tcl-lang.org

Command form

ai-draft · 2 tasks · 6 fields

Run an Expect (Tcl) script that talks to interactive programs, or execute inline commands. The debugger, buffered reading and rc-file suppression flags are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui expect
Run an Expect scriptExample values, fixed in this page — nothing here reaches a terminal
Basic
Script file*
file
Script arguments
string
Advanced
Diagnostic output
-d
TasksEach one presets the form for one job
Run an Expect script
scriptargsdebug
Run a Tcl command
cmddebug
ParametersOnly these flags are editable in the form
Script file
Expect script to run. Leave empty with a command or interactive mode.
path · positional 0
Script arguments
Passed to the script in the argv variable.
string · positional 1 · repeatable
Command before script
Tcl command run before the script. Quote it for the shell.
string · repeatable
-c
Diagnostic output
boolean
-d
Interactive prompt
boolean
-i
Print version
boolean
-v
SourcesEvery flag above is checked against these
man
expect(1) man page, Version 5 (local /usr/bin/expect) expect [ -dDinN ] [ -c cmds ] [ [ -[f|b] ] cmdfile ] [ args ] The -c flag prefaces a command to be executed before any in the script. The -d flag enables some diagnostic output The -D flag enables an interactive debugger. The -f flag prefaces a file from which to read commands from. The -i flag causes Exp…
manualVersion 5

manpages.debian.org

Before it fills your prompt, Otty checks the installed expect against its version. A form that does not match your version is not offered.