mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 07:42:20 +00:00
22 lines
464 B
Plaintext
22 lines
464 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|