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