LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I find out what clients are connected to an X server display? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-find-out-what-clients-are-connected-to-an-x-server-display-897952/)

thomase00 08-17-2011 07:43 PM

How can I find out what clients are connected to an X server display?
 
This is more of a general Unix question than a Linux question, but here it goes anyway...

I recently have been experimenting with running an Exceed X server on my standard-issue Windows laptop in order to display the X applications that I run on the RHEL server farm at work. I had to do a bit a messing around and experimenting at first, during which I launched lots of X clients from different machines. Now I have everything working more or less the way I want.

However, if I lock the screen on my laptop and come back, it appears there is a stray xscreensaver processes running somewhere on the server farm that is connected to my Exceed X server.

This got me wondering if there is a way to enumerate all of the X clients connected to a given X display. Maybe something similar to the xdpyinfo command? My googling hasn't turned up any hints...

trist007 08-18-2011 12:41 AM

Maybe try using
Code:

lsof -i


All times are GMT -5. The time now is 10:10 PM.