Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If there are 2 gnu-screens, with the name: screen1 and screen10. If we want to do something with screen1, I can't, because if I try as example to print something to the screen, it will say that there is a Screen screen1 and screen10. so I need to specify my command so it will print it to screen1 without any problems, but how can specify it, so this command below will work?

screen -x screen1 -p 0 -X stuff `printf "test\r"`

Manual screen: http://www.gnu.org/software/screen/manual/screen.html (I couldn't find the argument that would solve this problem)

share|improve this question

migrated from stackoverflow.com Jan 17 '13 at 1:45

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Try -S {session_name} -X {commands}.

example:

screen -S screen1 -X stuff `printf "test\r"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.