Commit | Line | Data |
---|---|---|
0ddd34f3 BJ |
1 | .th WHOISON VI 8/24/77 |
2 | .sh NAME | |
3 | whoison \- give information about who is on the system | |
4 | .sh SYNOPSIS | |
5 | .bd whoison | |
6 | [ | |
7 | .bd \- | |
8 | ] [ | |
9 | .bd \-pufnds | |
10 | ] [ | |
11 | name ... | |
12 | ] [ | |
13 | terminal ... | |
14 | ] [ | |
15 | location | |
16 | ] | |
17 | .sh DESCRIPTION | |
18 | .it Whoison | |
19 | is a program which summarizes the current users of a large system quickly | |
20 | and sensibly. | |
21 | Options are: | |
22 | .s3 | |
23 | .dt | |
24 | .st | |
25 | \fB\-p\fR list people | |
26 | .br | |
27 | \fB\-u\fR break down used teletypes | |
28 | .br | |
29 | \fB\-f\fR break down free teletypes | |
30 | .br | |
31 | \fB\-n\fR break down unavailable teletypes | |
32 | .br | |
33 | \fB\-d\fR give ``classwise'' distribution of users | |
34 | .br | |
35 | \fB\-s\fR summarize used and free | |
36 | .s3 | |
37 | The default is | |
38 | .bd \-pdfs. | |
39 | The option | |
40 | .bd \- | |
41 | only turns all information on. | |
42 | .s3 | |
43 | .it Whoison | |
44 | uses a data file | |
45 | .it winfo | |
46 | to break the teletypes on the system into classes, | |
47 | to give patterns, ala | |
48 | .it glob | |
49 | (VIII), | |
50 | for grouping users into | |
51 | .it classes, | |
52 | and to map users who are | |
53 | .it su'd | |
54 | to the character names of super-users. | |
55 | .s3 | |
56 | A typical | |
57 | .it winfo | |
58 | file would be | |
59 | .nf | |
60 | ||
61 | evans:ABCDEFGHIJKLQRST | |
62 | cory:abcdefghijklmnopvwyz+-, | |
63 | phone:01234 | |
64 | 11/10:679 | |
65 | private:58hq.=_%MNOPUVWX#! | |
66 | ||
67 | guest:guest*\||\|lhs* | |
68 | cc:cc\-* | |
69 | ||
70 | root:0:0 | |
71 | jeff:11:10 | |
72 | chuck:25:10 | |
73 | bill:37:10 | |
74 | ken:12:10 | |
75 | .fi | |
76 | .i0 | |
77 | .s3 | |
78 | The first group of lines, up to a null line, gives the distribution | |
79 | of the teletypes, given by the name of the class followed by a `:' | |
80 | and then the teletypes in the group. | |
81 | The second group gives the | |
82 | .it class | |
83 | names, followed by a `:' and then patterns to match the class names | |
84 | separated by `|' characters. | |
85 | Here any user whose login name begins with `guest' or `lhs' | |
86 | is considered to be a guest. | |
87 | Finally, the rest of the file is a miniature | |
88 | .it /etc/passwd | |
89 | to speed up user name searches. | |
90 | .s3 | |
91 | If non-flag arguments are given on the command line, these are used instead of | |
92 | the patterns here, and only users specified by these arguments are given. | |
93 | The effect is that of specifying the option | |
94 | .bd \-p | |
95 | for these people only, | |
96 | or if the pattern is a single character teletype name, | |
97 | for the person on that terminal only. | |
98 | The pattern may also be a location name, i.e. | |
99 | `evans' in the example above. | |
100 | Thus `whoison evans' will give the names of the users on the `evans' | |
101 | terminals. | |
102 | .s3 | |
103 | A typical output for the Cory System with this data base would be | |
104 | .s3 | |
105 | .nf | |
106 | broderse on c, conn on I and J, csgsa on L, devel on h, englar on 1, | |
107 | guest on R, jeff on 8, joyce on C and D, kaarto on o (as root), mosher on T, | |
108 | root on 5 (as pascal), so on - | |
109 | 15 used (1 guest), 45 free (8 evans, 19 cory, 4 phone, 3 11/10, 11 private) | |
110 | .fi | |
111 | .i0 | |
112 | .sh FILES | |
113 | .dt | |
114 | /etc/winfo data base | |
115 | .br | |
116 | /etc/utmp who data base | |
117 | .br | |
118 | /etc/ttys tty on/off information | |
119 | .sh SEE\ ALSO | |
120 | last (VI), sess (VI) | |
121 | .sh AUTHOR | |
122 | William Joy | |
123 | .sh BUGS |