This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to check for multiple user session

Tags: None
(comma "," separated)
cwiggler
Registered Member
Posts
1
Karma
0
Hi, I am working for a simple script to check for multiple session. the script will ssh to multiple remote workstations and I would like to know how to identify session?

if I issue command who, what process should i check to identify an active session? maybe someone already got a script to do that and would like to share?

thanks a lot.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would suggest checking for the presence of a "ksmserver" process - if searching for a KDE session. Otherwise, you might find the output of the "who" command to be helpful.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]