From b57d669b36b155283c36c07ce59bad9cd02d771d Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Wed, 23 Oct 2019 08:24:21 +0800 Subject: [PATCH] expect: add page (#3441) --- pages/linux/expect.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/expect.md diff --git a/pages/linux/expect.md b/pages/linux/expect.md new file mode 100644 index 000000000..45b98d852 --- /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`