Created
May 15, 2025 17:44
-
-
Save mmguero/d0a8d1a8953e7c4fcc9dbeb306a35c31 to your computer and use it in GitHub Desktop.
spawn a command with expect and interact with it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expect -c ' | |
spawn your_command | |
sleep 30 | |
send "\r" | |
interact | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment