/usr/sbin/whodo [-h] [-l] [user]
The whodo command produces formatted and dated output from information in the /var/adm/utmpx and /proc/pid files.
The display is headed by the date, time, and machine name. For each user logged in, device name, user-ID and login time is shown, followed by a list of active processes associated with the user-ID. The list includes the device name, process-ID, CPU minutes and seconds used, and process name.
If user is specified, output is restricted to all sessions pertaining to that user.
The following options are supported:
produces a display like this:
Tue Mar 12 15:48:03 1985 bailey tty09 mcn 8:51 tty09 28158 0:29 sh tty52 bdr 15:23 tty52 21688 0:05 sh tty52 22788 0:01 whodo tty52 22017 0:03 vi tty52 22549 0:01 sh xt162 lee 10:20 tty08 6748 0:01 layers xt162 6751 0:01 sh xt163 6761 0:05 sh tty08 6536 0:05 sh
If any of the LC_* variables ( LC_CTYPE, LC_MESSAGES, LC_TIME, LC_COLLATE, LC_NUMERIC, and LC_MONETARY ) (see environ(5)) are not set in the environment, the operational behavior of tar(1) for each corresponding locale category is determined by the value of the LANG environment variable. If LC_ALL is set, its contents are used to override both the LANG and the other LC_* variables. If none of the above variables is set in the environment, the "C" (U.S. style) locale determines how whodo behaves.
The following exit values are returned:
|December 15, 2013||OmniOS|