Re: Window -> PID
From: Alan Coopersmith (alanc_at_alum.calberkeley.org)
Date: 11/20/05
- Next message: sjharri_at_gmail.com: "Re: Editing the console file"
- Previous message: Alan Coopersmith: "Re: SunRay Companion Download outdated."
- In reply to: bunka.munka_at_yahoo.com: "Window -> PID"
- Next in thread: bunka.munka_at_email.si: "Re: Window -> PID"
- Reply: bunka.munka_at_email.si: "Re: Window -> PID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 20 Nov 2005 22:31:37 +0000 (UTC)
<bunka.munka@yahoo.com> writes in comp.unix.solaris:
|Sometimes, I have an application running in Window and want to
|know the PID. Is there a way I can get it somehow digging into
|structures, if I know the Window ID (obtained by xwininfo) ?
Not really easily. (On most OS'es, it's a flat out no - on Solaris,
with Xsun, the X server knows the pid for each client in order to do the
IA process priority manipulations, so you can dig it out with debugger
magic, but that's not something you'ld want to include in a script or
program (though I have).)
The best way to do this would be get the applications you care about
to set the _NET_WM_PID property - see the Extended WM spec at:
http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2511832
-- Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM http://blogs.sun.com/alanc/ * http://people.freedesktop.org/~alanc/ http://del.icio.us/alanc/ * http://www.csua.berkeley.edu/~alanc/ Working for, but definitely not speaking for, Sun Microsystems, Inc.
- Next message: sjharri_at_gmail.com: "Re: Editing the console file"
- Previous message: Alan Coopersmith: "Re: SunRay Companion Download outdated."
- In reply to: bunka.munka_at_yahoo.com: "Window -> PID"
- Next in thread: bunka.munka_at_email.si: "Re: Window -> PID"
- Reply: bunka.munka_at_email.si: "Re: Window -> PID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|