home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume17
/
lwho
/
part01
/
README
< prev
Wrap
Text File
|
1991-03-17
|
1KB
|
32 lines
Low-cost Remote Who
$Header: /nfs/papaya/source/lwho/RCS/README,v 1.2 91/03/16 18:09:36 rsalz Exp $
There is no copyright on this package.
We don't want to run RWHOD for all the standard reasons, but the
information that RWHO and RUPTIME provide is nice to have, so I wrote
LWHOD/LWHO, the "low-cost rwho package."
All machines have to be able to NFS-mount the same spool directory. A
small daemon, LWHOD, on each machine writes a text file containing
statistics like boot-time, load average, users, etc. The file is
basically self-describing (see lwhod.c), a decision which made this whole
thing pretty trivial to do. Thanks to Jon Bentley and his "Programming
Pearls" books.
The user program, LWHO, reads the files and prints what the user has
asked for, in a useful way. It does pretty much everything what rwho and
ruptime would do. LWHO reads all the files into memory, so if
you run this on hundreds of systems that support hundreds of users,
you might lose.
I'd call this package a hack, but the ratio of code/functionality is so
high that it doesn't seem right.
To install, edit the Makefile to get the "install" stuff right for your
system. Then edit lwho.h if you want to change the spool directory. When
installing a daemon on a host make sure that SPOOLDIR is appropriately
NFS-mounted (and symlink'd) on the host.
Enjoy!
/rich $alz; <rsalz@bbn.com>