packages icon



 LWHO(1)                                                             LWHO(1)




 NAME
      lwho, luptime - show who is using local machines

 SYNOPSIS
      lwho [ -uuser ] [ -mmachine ] [ -x ] [ -a ] [ -i ] [ -r ]

      luptime [ -uuser ] [ -mmachine ] [ -x ] [ -a ] [ -b ] [ -l ] [ -n ] [
      -u ] [ -r ]

      a.out -p [ lwho_options ]

      a.out -h [ luptime_options ]

 DESCRIPTION
      Lwho and luptime are the user program for the ``low-cost rwho''
      package.  The read the text files that lwhod(8) creates in an
      NFS-mounted spool directory, and presents the information in a variety
      of useful ways.  The program is linked under two different names, and
      the output will vary depending on how it is invoked.  To find host-
      oriented information, invoke luptime or use the ``-h'' flag.  To find
      person-oriented information, invoke lwho or use the ``-p'' flag.

      By default, the programs show information about all users on all
      hosts.  To see information about a specified set of users or hosts,
      use the ``-u'' flag specify the login names of the desired users, or
      the ``-m'' flag to specify the names of the desired hosts.  These
      flags may be repeated to specify a collection of hosts or users, and
      may be used together to specify an intersection.  For example:
           lwho -u rsalz
           lwho -u root -m fig.bbn.com -m pineapple.bbn.com
           lwho -m fig.bbn.com -m pineapple.bbn.com
      The first line finds all machines where ``rsalz'' is logged in; the
      second line finds if ``root'' is logged in on ``fig'' or
      ``pineapple''; the third line shows all users logged in to either of
      those machines.

      When reporting, output is normally sorted alphabetically by the host
      or user name; this may be specified by using tyhe ``-a'' flag.  To
      sort by uptime (first machine booted first), use the ``-b'' flag.  To
      sort by the number of users (smallest number first), use the ``-n''
      flag.  To sort by the load average (most lightly-loaded machine
      first), use the ``-l'' flag.  To sort by idle time (most recently used
      terminal first), use the ``-i'' flag.  To reverse the sorting,
      regardless of the method, use the ``-r'' flag.  For lwho, only the
      ``-i'' flag makes sense, if any other flag is given it is ignored.
      For luptime, the ``-i'' flag is ignored.

      If no users (for lwho), or no hosts (for luptime), are found, no
      output is generated.  To suppress the banner (useful when feeding into
      a pipeline), use the ``-x'' flag.




                                    - 1 -         Formatted:  March 28, 2024






 LWHO(1)                                                             LWHO(1)




 BUGS
      There are no hueristics to tell if a host is up or down, or ignore
      users who have been idle for a long time the way rwho(1) and
      ruptime(1) can and do.

 FILES
      /usr/spool/lwho/hostname  Load and user data

 AUTHOR
      Rich $alz; <rsalz@bbn.com>.uu.net>.

      There is no copyright on this package.

 SEE ALSO
      lwhod(8).







































                                    - 2 -         Formatted:  March 28, 2024