home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume3
/
nwho
/
README
< prev
Wrap
Text File
|
1986-11-30
|
2KB
|
36 lines
This is an enhanced who program. Features:
1) expands aliases for login names
2) sorts output alphabetically by name
3) space-efficient multi-column output
4) speed comparable to /bin/who
5) size comparable to /bin/who
To compile:
This program is used regularly on 2.9, 4.1 and 4.2 BSD UNIX
systems (PDP's, VAXen, SUN-2's, and Pyramid 90x's) here at rayssd.
(We used to have a V7 system that an earlier version worked on, so
I think that with "#define void int", it should work fine.)
If you're on a 2.9 or 4.2 system, #define bsd42. Else, if you're
on a system that has a ut_host field in the utmp structure, you should
#define hashosts. If your system has tty id's that are other than 2
letters long (the "xx" in "ttyxx"), you'll need to #define TTYLEN to
that length. You'll need getopt() to compile this program. If you
don't have termcap, you can take out the guts of termlen() or adapt
the program to use terminfo (send me the diffs!).
A good example is a vanilla Pyramid 90x system running Berkley init.
cc -O -Dbsd42 -DTTYLEN=3 -o nwho nwho.c getopt.o -ltermcap
Problems:
If you have any problems, I'd like to know about them. If you get
this program running on any type of system not mentioned above, I'd be
interested in the diffs to make it work. If you have any useful
enhancements, I'd like to know about them too.
Greg Paris { allegra, linus, raybed2 }!rayssd!gmp
PO Box 360/MS 330
Portsmouth, RI 02871
(401) 847-8000 ext. 3839