Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: (I couldn't find the argument that would solve this problem)

share|improve this question

migrated from Jan 17 '13 at 1:45

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

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


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

Your Answer


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.