diff --git a/pages/linux/expect.md b/pages/linux/expect.md new file mode 100644 index 0000000000..45b98d8526 --- /dev/null +++ b/pages/linux/expect.md @@ -0,0 +1,16 @@ +# expect + +> Script executor that interacts with other programs that require user input. +> More information: . + +- Execute an expect script from a file: + +`expect {{path/to/file}}` + +- Execute a specified expect script: + +`expect -c "{{commands}}"` + +- Enter an interactive REPL (use `exit` or Ctrl + D to exit): + +`expect -i`