HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

autoexpect — Generate a script from watching a session. More information: <https://manned.org/autoexpect>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
autoexpectcommandwatchingfromclisessionscriptgenerate
linux

Problem

How to use the autoexpect command: Generate a script from watching a session. More information: <https://manned.org/autoexpect>.

Solution

autoexpect — Generate a script from watching a session. More information: <https://manned.org/autoexpect>.

Spawn a shell and generate a script from it:
autoexpect


Run a command and generate a script from it:
autoexpect {{command}}


Run a command, generate a script, and save the script to a specified file:
autoexpect -f {{path/to/file}} {{command}}

Code Snippets

Spawn a shell and generate a script from it

autoexpect

Run a command and generate a script from it

autoexpect {{command}}

Run a command, generate a script, and save the script to a specified file

autoexpect -f {{path/to/file}} {{command}}

Context

tldr-pages: linux/autoexpect

Revisions (0)

No revisions yet.