punctuation
[unix-history] / usr / src / old / sysline / sysline.1
CommitLineData
412e4f93
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
570d12e7 5.\" @(#)sysline.1 6.2 (Berkeley) %G%
412e4f93 6.\"
975a0faf 7.TH SYSLINE 1 ""
412e4f93
KM
8.UC 5
9.SH NAME
10sysline \- display system status on status line of a terminal
11.SH SYNOPSIS
12.B sysline
13[
975a0faf 14.B \-bcdewhDilmpqrsj
412e4f93
KM
15] [
16.B \-H\ remote
17] [
18.B +N
19]
20.SH DESCRIPTION
21.I Sysline
22runs in the background and periodically displays system status information
23on the status line of the terminal.
24Not all terminals contain a status line.
25Those that do include the h19, concept 108, Ann Arbor Ambassador, vt100,
26Televideo 925/950 and Freedom 100.
27If no flags are given,
28.I sysline
29displays the time of day, the current load average, the change in load
30average in the last 5 minutes, the number of users (followed by a `u'),
31the number of runnable process (followed by a `r')[VAX only], the number
32of suspended processes (followed by a `s')[VAX only],
33and the users who have logged on and off since the last status report.
34Finally, if new mail has arrived, a summary of it is printed.
35If there is unread mail in your mailbox, an asterisk will appear after the
36display of the number of users.
37The display is normally in reverse video (if your terminal supports
38this in the status line) and is right justified to reduce distraction.
39Every fifth display is done in normal video to give the screen a chance
40to rest.
41.PP
42If you have a file named .who in your home directory, then the contents
43of that file is printed first. One common use of this
44feature is to alias chdir, pushd, and popd to place the current directory
45stack in ~/.who after it changes the new directory.
46.PP
47The following flags may be given on the command line.
48.TP 12
49.B \-b
50Beep once every half hour and twice every hour, just like those obnoxious
51watches you keep hearing.
52.TP
53.B \-c
54Clear the status line for 5 seconds before each redisplay.
55.TP
56.B \-d
570d12e7 57Debug mode -- print status line data in human readable format.
412e4f93
KM
58.TP
59.B \-D
60Print out the current day/date before the time.
61.TP
62.B \-e
63Print out only the information. Do not print out the control commands
64necessary to put the information on the bottom line. This option is
65useful for putting the output of
66.I sysline
67onto the mode line of an emacs window.
68.TP
975a0faf
KM
69.B \-w
70Window mode -- print the status on the current line of the terminal,
71suitable for use inside a one line window.
72.TP
412e4f93
KM
73.B \-H remote
74Print the load average on the remote host \fIremote\fP [VAX only].
75If the host is down, or is not sending out \fIrwhod\fP packets, then
975a0faf
KM
76the down time is printed instead. If the prefix "ucb" is present,
77then it is removed.
412e4f93
KM
78.TP
79.B \-h
80Print out the host machine's name after the time [VAX only].
81.TP
82.B \-l
83Don't print the names of people who log in and out.
84.TP
85.B \-m
86Don't check for mail.
87.TP
88.B \-p
89Don't report the number of process which are runnable and suspended.
90.TP
91.B \-r
92Don't display in reverse video.
93.TP
94.B \+N
95Update the status line every N seconds. The default is 60 seconds.
96.TP
97.B \-q
98Don't print out diagnostic messages if something goes wrong when starting up.
99.TP
100.B \-i
101Print out the process id of the
102.I sysline
103process onto standard output upon startup.
104With this information you can send the alarm signal to the
105.I sysline
106process to cause it to update immediately.
107.I sysline
108writes to the standard error, so you can redirect the standard
109output into a file to catch the process id.
110.TP
111.B \-s
112Print "short" form of line by left-justifying
113.I iff
114escapes are not allowed in the status line.
115Some terminals (the Televideos and Freedom 100 for example)
116do not allow cursor movement (or other "intelligent" operations)
117in the status line. For these terminals,
118.I sysline
119normally uses blanks to cause right-justification.
120This flag will disable the adding of the blanks.
121.TP
122.B \-j
123Force the sysline output to be left justified even on terminals capable of
124cursor movement on the status line.
125.PP
126If you have a file .syslinelock in your home directory, then
127.I sysline
128will not update its statistics and write on your screen, it will just go to
129sleep for a minute. This is useful if you want to momentarily disable
130.I sysline.
131Note that it may take a few seconds from the time the lock file
132is created until you are guaranteed that
133.I sysline
134will not write on the screen.
135.SH FILES
136.ta 2.4i
137.nf
138/etc/utmp names of people who are logged in
139/dev/kmem contains process table [VAX only]
140/usr/spool/rwho/whod.* who/uptime information for remote hosts [VAX only]
141${HOME}/.who information to print on bottom line
142${HOME}/.syslinelock when it exists, sysline will not print
143.fi
144.SH AUTHORS
145John Foderaro
146.br
147Tom Ferrin converted it to use termcap.
148.br
149Mark Horton added terminfo capability.
150.SH BUGS
151If you interrupt the display then you may find your cursor missing or
152stuck on the status line. The best thing to do is reset the terminal.
153.br
154If there is too much for one line, the excess is thrown away.