Re: screen pid in hardstatus

Aaron Davies <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Wednesday, December 8, 2010, Todd Freed <tfreed-5HQwtzS045uJ1ku80POtVQC/[email protected]> wrote:
> 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?

Maybe with a backtick involving $$ or ps or something in /proc? I'm
not sure what context backticks are executed in tho....

-- 
Aaron Davies
[email protected]
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.