screen-users
[Top][All Lists]
Advanced

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

Re: screen pid in hardstatus


From: Todd Freed
Subject: Re: screen pid in hardstatus
Date: Mon, 13 Dec 2010 08:39:58 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9pre) Gecko/20100217 Lightning/1.0b1 Shredder/3.0.3pre

Thanks for the suggestions everyone. I ended up doing a backtick command with both parameters set to zero, calling a script which itself simply calls getppid (get parent pid) and writes it to stdout

-Todd

On 12/11/2010 10:22 PM, Sadrul Habib Chowdhury wrote:
On Wed, Dec 8, 2010 at 3:13 PM, Todd Freed <address@hidden
<mailto:address@hidden>> 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.


If you are using the development version
(http://git.savannah.gnu.org/cgit/screen.git), you can use "%p" or "$PID".

Cheers.
Sadrul

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.




reply via email to

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