Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do you list your vncserver sessions?

This article says to do this:

$ cat ~/.vnc/*.pid
5910
6790
16589
21891
... and many more

Using this method, I could write a script to check each pid, but there has got to be something better.

Is there a better way? I'd like to see something like:

$ vncserver -l
Session  User  Started     Status    Blah
1        jess  3/24 19:00  Active    ?
2        jess  3/21 14:00  Suspended ?

EDIT: For example. I have six sessions running, but I can only use one of them. All six show up as running processes. It would also be nice to see a list for other users too; I just found a server with 95 VNC sessions. I have no idea which ones are active.

share|improve this question

1 Answer 1

I always use ps -ef | grep vnc, then pick out the parts I need from that.

share|improve this answer
    
I have 6 sessions listed. The only session I can get to is :6. How would I know which sessions are active/still working? –  Jess Mar 27 '13 at 12:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.