[TriLUG] auto-detach for screen?

Michael Rothwell michael at rothwell.us
Mon Nov 19 22:38:37 EST 2007


Add something like this to your .screenrc
idle 120 detach



On 11/19/07, Cristóbal Palmer <cristobalpalmer at gmail.com> wrote:
>
> Hi folks,
>
> On our machines we have TMOUT=120 for bash. Once upon a time I found
> this annoying, but it's a cultural norm here that has grown on me to
> the point that I want it elsewhere. Specifically, I want a mechanism
> to send a pow_detach to screen(1) if I've been idle for 7 minutes.
> Anybody know what magic I might put in my ~/.screenrc to get screen to
> do that? If such magic doesn't exist, can someone wiser and more
> bearded suggest a bash trick that would have the same effect?
>
> If upon arriving home I remember that I've left myself attached at
> work, I can accomplish the same thing by logging into the machine with
> my screen session and issuing 'screen -Dr' (if you're not familiar
> with screen you really should go play with it--it's amazing. :), but I
> don't trust myself, so I want it built in.
>
> Cheers,
> --
> Cristóbal M. Palmer
> celebrating 15 years of sunsite/metalab/ibiblio:
> http://tinyurl.com/2o8hj4
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>
>


-- 
Michael Rothwell
michael at rothwell.us



More information about the TriLUG mailing list