screen-users
[Top][All Lists]
Advanced

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

RE: screen pid in hardstatus


From: Kit Gerrits
Subject: RE: screen pid in hardstatus
Date: Sun, 12 Dec 2010 11:11:25 +0100

Hello Todd,


Have you tried naming your screen sessions using 'screen -S <sessionname>' ?

AFAIK, it only works at creation time, but regular usage makes it very
convenient.


I've grown accustomed to creating a new screen session for each task.
That way, I can always reconnect to the session I want.


The only method I know to find out which unnamed screen is which is by using
'pstree -p'

address@hidden ~]$ screen -ls
There are screens on:
        2097.rtorrent   (Detached)
        2867.archief    (Detached)
2 Sockets in /var/run/screen/S-kit.

address@hidden ~]$ pstree -p 2097
screen(2097)-T-bash(2101)
             L-rtorrent(2103)



Regards,

Kit

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
address@hidden
Sent: zaterdag 11 december 2010 18:00
To: address@hidden
Subject: screen-users Digest, Vol 1128, Issue 1

Send screen-users mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.gnu.org/mailman/listinfo/screen-users
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific than
"Re: Contents of screen-users digest..."


Today's Topics:

   1. screen pid in hardstatus (Todd Freed)


----------------------------------------------------------------------

Message: 1
Date: Wed, 08 Dec 2010 13:13:41 -0700
From: Todd Freed <address@hidden>
Subject: screen pid in hardstatus
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Screen Users,

Something that comes up for me from time to time is I want to attach to
currently running screen from elsewhere. The problem at this point is to
determine the pid of that session, since I am always running several screens
at once.

What would be ideal it seems to be is to add the pid of the current screen
session to my harstatus line, so I could just with a glance get that pid for
attaching purposes.

However from my perusal of the docs, it doesn't seem like the pid is one of
the supported variables.

Is there a way for me to do this?

Thanks,

-Todd
This e-mail message and any attachments contain information that is
confidential and may be privileged.  If the reader of this e-mail is not the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.  If
you have received this communication in error, please immediately notify us
by replying to this message or by sending an email to
address@hidden, and destroy all copies of this message and any
attachments without reading or disclosing them.  Thank you.




------------------------------

_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users

End of screen-users Digest, Vol 1128, Issue 1
*********************************************




reply via email to

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