lswhod - location service daemon using who
lswhod [-D] [-d directory] [-i interval]
Source is available at http://www.cs.columbia.edu/~hgs/lwshod/src/
This should compile on all Unix platforms and has been tested on Solaris and Linux.
The lswhod daemon should run, once, on every system in domain. It tracks the login activity of users in a set of shared directories. A utility such as lswhod.tcl can then be used to find out where a particular user can be found.
When a user jones is logged onto the host bali running lswhod, lswhod writes a world-readable file "jones/bali". If the user is just logged in locally on that host, the file has zero length. If the user is logged in remotely and/or locally, the file contains the names of the hosts, including localhost for the local (console) login. (This design was chosen since POSIX limits path names to 255 characters, making it difficult to encode the names of remote hosts into the file name. Per-user subdirectories are chosen to reduce the directory scan time.)
lswhod only writes one entry per logged-in user and host running the daemon, with the console being favored.
The -D flag puts lswhod into daemon mode.
- -D
- Puts lswhod into daemon mode.
- -i interval
- Interval between updates of the database. Default: 3 minutes.
- -d directory
- Directory where lswhod writes location information. The default directory is a compile-time option. The directory should be NFS-mounted if other hosts are to have access to the information.
who (1), utmp (4), aliases, namemapper, ishere, tracker
Henning Schulzrinne, Columbia University
Copyright 1997 by Columbia University; all rights reserved
Permission to use, copy, modify, and distribute this software and its documentation for research and educational purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that the copyright notice and warranty disclaimer appear in supporting documentation, and that the names of the copyright holders or any of their entities not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Use of this software in whole or in parts for direct commercial advantage requires explicit prior permission.
The copyright holders disclaim all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall the copyright holders be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortuous action, arising out of or in connection with the use or performance of this software.