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.

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

1 Answer 1

Yup, definitely over-complicating things:

screen -R

Where:

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

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.