Re: Discover Active User



On date Tuesday 2007-12-18 20:09:48 -0300, Lucas Prado Melo gnomed:
> How do I find out which useR is logged and running gnome at the local machine?
> 
> On Dec 18, 2007 8:07 PM, Lucas Prado Melo <lucaspm dcc ufba br> wrote:
> > How do I find out which use is logged and running gnome at the local machine?

What about this:
ps -e -o cmd,user | grep [g]nome-session | awk '{ print $2 }' | uniq

HTH, regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]