List of active users
On telnet and ssh login, I can se active users with who, who -u ...
How can I se active users, running on Gnome desktop ? Thru XDMCP. Regards |
Do you mean that those users who are connected to your machine thru some GUI tools (with gnmoe desktop installed) like VNC or Nomchine etc.?
Code:
~$ ps -aef | grep gnmoe-terminal |
well.... ps -ef | grep gnome-session is better then..... if there no command as 'who'.
They run X on thin clients connecting to the Gnome Desktop with XDMCP, some with SPICE clients. |
You can also use w command, which gives you command name also.
Code:
~$ w |
Not all run gnome-terminal, so grep'ing for gnome-session is better on Redhat.
But it seems logged in users, where screensaver is active (going back in login), does'nt show up in 'w' ! When running 'top' I can see several users running firefox and putty, so this means they are active. But they does'nt show with 'who' or 'w'. Gnome-who does'nt exist ? ;-) |
Firefox and putty are not gnome based utilities, so how can you see gnome terminal or gnome related applications with firefox or putty??
Those who are connected remotely, you can see them in terminal type pty or pts So before suggesting anything more, let's know what 'exactly' your purpose is? Else who and w are more than enough. |
Well, I'm only looking for a command, that shows active users on the Gnome Desktop.
It seems for now, the only way is ps -ef | grep gnome-session I can make an alias ;-) |
PS. who and w does NOT show all the desktop users, only some and only telnet/ssh sessions. this is on Redhat.
|
Quote:
Try following cmds: Code:
~$ ps -aef | grep gnome-terminal |
Well, the users are not running gnome-terminal ! .... they are running firefox, thunderbird, libreoffice, putty...
|
Quote:
Code:
~$ ps -aef | awk '{print $1}' | uniq |
All times are GMT -5. The time now is 04:31 PM. |