sexpect (alpine): expect designed for shell scripts
Keywords: automation|bash|expect|pty|shell|tty