[Bug 865] Wish: Who's where? Synced list of users logged in
http://bugs.skolelinux.no/show_bug.cgi?id=865
------- Additional Comments From faj@bzz.no 2007-08-09 10:28 -------
I'm using this script:
#!/bin/sh
ps hax --format user,pid,command | \
grep ssh[d] | \
while read USER PID SSHD LOGIN ; do
test "$USER" = "root" && continue
case "$LOGIN" in
*@notty)
DISPLAY=$(ps h --ppid $PID --format command | sed -e
's:.*LTSP_CLIENT="\(.*\)" .*:\1:g')
echo $USER $DISPLAY
;;
*) echo "$LOGIN" ;;
esac
done
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: