Re: Process ID of Xserver
Re: Process ID of Xserver
- Subject: Re: Process ID of Xserver
- From: Kevin Geiss <email@hidden>
- Date: Fri, 1 Oct 2004 09:58:48 -0700
well, 'ps auxwwj' will list all processes along with their parent pids.
the X server should be called 'X11', with the full path:
/Applications/Utilities/X11.app/Contents/MacOS/X11
oddly enough, on my system there were two of them, one was the parent
of the other.
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME
PPID PGID SESS JOBC COMMAND
kevin 19006 9.7 2.8 110296 18372 ?? S 9:48AM 0:10.82
19005 16043 172e084 0
/Applications/Utilities/X11.app/Contents/MacOS/X11 -psn_0_13500417 :0
kevin 19005 0.0 0.1 28760 792 ?? S 9:48AM 0:00.03
16043 16043 172e084 0
/Applications/Utilities/X11.app/Contents/MacOS/X11 -psn_0_13500417
On Oct 1, 2004, at 8:17 AM, robert delius royar wrote:
Is there a reliable way to get the PID of the Xserver which owns the
root window? Either a shell method or one which runs within a child
process would be OK. I know I can get the parent's PID in a program,
but I don't think I can be sure that that will always be the server.
For example the parent might be an XTerm.
With the PID, I can get the server app's serial number which I can
then use to talk to some of the event manager routines.
--
Dr. Robert Delius Royar Associate Professor of
English
Morehead State University Morehead,
Kentucky
That was the main thing I learned in all the science classes I took
in
high school. If you give the principal a cracker soaked in liquid
nitrogen, fog will come out of his nose!
-Joe Manfre, in ARK
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden