Answer the question
In order to leave comments, you need to log in
How to wait for a response from the window?
How to wait for a response from the window and only then continue working if such a message is sent, and the program in the window will definitely answer?
sleep is not the best idea
screen -S screenname -X eval 'stuff "say Hello"\015'
sleep 5
echo "Completed"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question