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

I wrote this command to reconnect an active screen session when Terminator is opened. It works find but there has got to be a better way to to it

This is goes in the Terminator config file (note myhost is my computer name)

r=$(screen -ls | awk '{print $1}' |grep myhost); screen -r $r
share|improve this question
@Johnsyweb. Thats it. Thanks! – Randim Jan 13 '12 at 22:50

Yup, definitely over-complicating things:

screen -R


-R -- reattach if possible, otherwise start a new session

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.