Subject: can't see users with who
To: None <port-mac68k@NetBSD.ORG>
From: Mr BOFH <root@macaroni.cs.wits.ac.za>
List: port-mac68k
Date: 11/01/1996 11:08:35
when i run x, neither who nor w return accurate reports of who is logged
in.

so to overcome this, i wrote a simple shell script using the ps command.
here it is:

#!/bin/sh
#
# 'whom' by mr BOFH!
#
if [ $# -gt 0 ]
then
	ps -ux | grep $1 | more
else
	ps -ux | more
fi
exit 0

cool!
the syntax is 

whom - to list everyone
whom uid - to list only stuff being run by user uid.

next i'll make one to kill all run by a certain uid or kill all processes
with a certain filename. :-)

_________________________________________________________________________
John Ostrowick
Computer Science Department, University of the Witwatersrand
1 Jan Smuts Ave, Johannesburg, South Africa. 1st Floor, Senate House 1012
Phone: +27 (011) 716-3783
jon@cs.wits.ac.za or jon@macenroe.cs.wits.ac.za or jon@is.co.za
My web page is on my server's: http://macenroe.cs.wits.ac.za/
My ftp site: ftp://macenroe.cs.wits.ac.za/public partition/
My listserv: subscr@macenroe.cs.wits.ac.za (any message with a body)