expect

Script executor that interacts with other programs that require user input.

TLDR

Execute an expect script from a file

$ expect [path/to/file]
copy


Execute a specified expect script
$ expect -c "[commands]"
copy


Enter an interactive REPL (use exit or Ctrl + D to exit)
$ expect -i
copy

Copied to clipboard