[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to start screen from .bashrc

From: Phil!Gregory
Subject: Re: how to start screen from .bashrc
Date: Thu, 28 Sep 2006 09:32:28 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

* Michael Parson <address@hidden> [2006-09-19 10:34 -0500]:
> One of the features of screen is that you can disconnect from screen
> and log out, log back in later and reconnect to the existing session.
> Having it auto-start a new screen every time you log in could make that
> difficult.

So put 'screen -dRR' in your .login (or whatever) file.  That will
reattach to an existing screen session if there is one (if there's more
than one it picks the first one) and creates a new session otherwise.  If
the session is attached alsewhere, it will detach the other location.  (If
you want multi attach just use 'screen -xRR' instead.)

-- contrarian of the first order... /
PGP: 026A27F2  print: D200 5BDB FC4B B24A 9248  9F7A 4322 2D22 026A 27F2
--- --
If you ever build a device to transfer the hero's energy into you, make
sure it cannot operate in reverse.
                       -- Evil Overlord's Handbook, entry 180
---- --- --

reply via email to

[Prev in Thread] Current Thread [Next in Thread]