views:

41

answers:

3

Hi,

I'm using the 'screen' multiplexer tool on the command shell and open a lot of screens. So I forget wich process ID is wich task.

I Would like to set a name for a screen but can't find an option in the manpage.

So it looks like this:

There are screens on:
    5422.pts-1.aws1 (Detached)
    5448.pts-1.aws1 (Detached)
    5027.pts-1.aws1 (Detached)

3 Sockets in /var/run/screen/S-sb.

And I would like to see something like this:

There are screens on:
    5422.logCleanWorker (Detached)
    5448.overNightLongTask(Detached)
    5027.databaseOverNightLongTask (Detached)

3 Sockets in /var/run/screen/S-sb.

How can I do this?

Greetz Spanky

A: 

Shouldn't that be these:

$> screen -S logCleanWorker
$> screen -S overNightLongTask
$> screen -S databaseOverNightLongTask
BjoernD
By the way: Google "unix screen set name"
BjoernD
thx... wrong searchterm in google "screen name task" ..... that's what I tried
spankmaster79
+2  A: 

to create

screen -S foo

then to reattach

screen -x foo
miedwar
+1  A: 

screen -S SESSIONNAME is good for starting a session with a name, but if you start a session and later decide to name it, enter command mode (C-a :) and then enter the command sessionname SESSIONNAME.