Re: screen "name" ???

Chris Jones <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Tue, May 14, 2013 at 09:53:29AM EDT, t1jump wrote:

> I am using screen on a remote device (BeagleBone) through my Ubuntu
> PC. I enter a screen session through the Ubuntu Gnome terminal (screen
> /dev/ttyUSB1 115200). Once on the BeagleBone I start a screen session
> and try to name a screen (screen -S 1) which I thought would create
> a screen named "1". I start a second screen (screen -S 2). Now when
> I try to get to screen 1 and I (screen -r 1) I get a message there is
> no screen with name "1". 

> If I (screen -ls) I see two attached sessions but they have numbers
> like 790.1 and 3256.2. What am I missing here to get screen names as
> I set them?

From "screen -h":

-S sockname   Name this session <pid>.sockname instead of <pid>.<tty>.<host>.

This comes in handy when dealing with multiple disconnected screen
sessions, for instance. If you disconnect from both the above sessions,
a simple "screen -r 1" or "screen -r 2" should let you reconnect to
either session -- whatever their current pid.

CJ

-- 
Alex Perez is aliveeeeeeee!!!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.