whodo man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

whodo(8)							      whodo(8)

NAME
       whodo - Who is doing what

SYNOPSIS
       /usr/sbin/whodo [-h] [-l] [user]

OPTIONS
       Does  not  display  the	heading information.  Displays the long format
       which consists of the following: The login name for the user The termi‐
       nal  (tty)  that	 the  user is using When the user user logged in (dis‐
       played in hh:mm format) The user's idle time (also displayed  in	 hh:mm
       format)	the amount of CPU time (displayed in mm:ss format) used by all
       processes, including child processes, on the user's  terminal  The  CPU
       time (displayed in mm:ss format) used by the currently active processes
       The name of the current process and its arguments, if any

OPERANDS
       If specified, only the information for the specified user is displayed.

DESCRIPTION
       By default, the whodo command displays  information  for	 each  current
       user,  preceded	by a two-line heading. The date and time appear on the
       first line and the system name occupies the second line.

       The whodo command presents a list of each current user,	identified  by
       the  name of the terminal (tty) port they occupy, their login name, and
       the time they logged in.

       Under the listing for each current user is  process  information,  that
       is:  A  list  of	 their	active	processes  The terminal (tty) port The
       process ID (PID) The number of minutes and seconds the process has been
       running The process name

       Specifying  a  user  argument  causes  whodo to limit the output to the
       heading and the specified user only.

EXIT STATUS
       Success An failure occurred

EXAMPLES
       The following example shows how to display the heading information  and
       user  information for each current user in the default format.  $ whodo
       date and time system-name

       ttyp1	    smith    10:47
	   ttyp1	  526	 0:00 ksh

       ttyp2	    jones    11:34
	   ttyp2	  548	 0:00 ksh
	   ttyp2	  571	 0:00 whodo The following example shows how to
       display	user  information  for each current user in the default format
       without the heading.

	      $ whodo -h ttyp1	      smith    10:47
		   ttyp1	 526	0:00 ksh

	      ttyp2	   jones    11:34
		   ttyp2	 548	0:00 ksh
		   ttyp2	 571	0:00 whodo The following example shows
	      how  to display user information for a given user in the default
	      format.	$  whodouser   date   and   time   system-name	 ttyp1
	      smith    10:47
		  ttyp1		  526	  0:00 ksh The following example shows
	      how to display user information in the  long  format.   $	 whodo
	      -luser
		   3:34pm  up  6:03,  2 users
	       User	tty		login@	   idle	  JCPU	 PCPU  what
	       smith	 ttyp1		11:34am	      19		vi The
	      following example shows user information for a session that  was
	      started  from  some  other  session; the process data associated
	      with the dtterm is displayed in the  session  where  the	dtterm
	      process  was  started. Here, ttyp6 is started from pts/4, so all
	      the processes associated with ttyp6 are displayed	 under	pts/4.
	      $ whodo date and time system-name

	      console	   root	    09:10
		console		 480	0:01 dtsession
		console		 507	0:00 ttsession
		console		 518	0:00 sh
		console		 521	0:00 dxconsole

	      pts/1	   user1    09:04
		  pts/1		 466	0:00 ksh

	      :0	   root	    09:10
		  ??:??		 411	0:00 dtlogin

	      pts/4	   root	    09:13
		  pts/4		 542	0:00 ksh
		  pts/4		 544	0:11 netscape.exec
		  pts/4		 669	0:01 dtterm
		  ttyp6		 670	0:00 sh
		  ttyp6		 688	0:00 sleep
		  pts/4		 690	0:00 whodo

	      pts/6	   root	    10:13 #

FILES
       Is  associated  with  the user's terminal.  Contains the process image.
       Is the password file.

SEE ALSO
       Commands: ps(1), w(1)

       Files: proc(4), utmp(4)

								      whodo(8)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net