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' [...@eee-box ~]$ screen -ls There are screens on: 2097.rtorrent (Detached) 2867.archief (Detached) 2 Sockets in /var/run/screen/S-kit. [...@eee-box ~]$ pstree -p 2097 screen(2097)-T-bash(2101) L-rtorrent(2103) Regards, Kit -----Original Message----- From: screen-users-bounces+kitgerrits=gmail....@gnu.org [mailto:screen-users-bounces+kitgerrits=gmail....@gnu.org] On Behalf Of screen-users-requ...@gnu.org Sent: zaterdag 11 december 2010 18:00 To: screen-users@gnu.org Subject: screen-users Digest, Vol 1128, Issue 1 Send screen-users mailing list submissions to screen-users@gnu.org 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 screen-users-requ...@gnu.org You can reach the person managing the list at screen-users-ow...@gnu.org 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 <tfr...@nitrosecurity.com> Subject: screen pid in hardstatus To: screen-users@gnu.org Message-ID: <4cffe6f5.40...@nitrosecurity.com> 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 postmas...@nitrosecurity.com, and destroy all copies of this message and any attachments without reading or disclosing them. Thank you. ------------------------------ _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users End of screen-users Digest, Vol 1128, Issue 1 ********************************************* _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users