diff --git a/pages/linux/autoexpect.md b/pages/linux/autoexpect.md new file mode 100644 index 00000000000000..a093600ac1fc68 --- /dev/null +++ b/pages/linux/autoexpect.md @@ -0,0 +1,16 @@ +# autoexpect + +> Generate a script from watching a session. +> More information: . + +- 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}}`