Shell GNU-Screen -X Stuff problems Shell GNU-Screen -X Stuff problems shell shell

Shell GNU-Screen -X Stuff problems


Adding the argument -p 0 should fix it. Something like this:

screen -x $PROCESS -p 0 -X stuff `printf "stop\r"`

(From screen documentation: -p window Preselect the named window if it exists.)