On Mon, Nov 23, 2009 at 1:06 PM, Knight Samar <[email protected]> wrote: > Hi, > > How can we find out which users have logged on the GUI ? > I know that grepping the output of ps aux for all users who are running > x-session-manager is one way, but is there a simpler one ? >
Try the 'who' command. $ who kaustubh :0 2009-11-30 15:40 kaustubh pts/0 2009-11-30 15:40 (:0) Look for lines where the second column is :0, :1 etc .. those are the users who have active X sessions. Kaustubh -- Kaustubh Gadkari kaustubh [dot] gadkari [at] gmail [dot] com _______________________________________ Pune GNU/Linux Users Group Mailing List
