Lightweight Expect-like PTY tool for automating interactive shell scripts
Lightweight Expect-like PTY tool for shell scripts
empty$ empty -f -i /tmp/session
empty -s /tmp/session
echo 'ls -la' | empty -w /tmp/session$ empty -f bash
empty -s bash
echo 'whoami' | empty -w bash
echo 'exit' | empty -w bash$ empty -f interactive_shell
empty -r interactive_shell > output.txt