Commit | Line | Data |
---|---|---|
362b077f C |
1 | |
2 | ||
3 | ||
4 | SYSLINE(1) UNIX Programmer's Manual SYSLINE(1) | |
5 | ||
6 | ||
7 | ||
8 | N\bNA\bAM\bME\bE | |
9 | sysline - display system status on status line of a terminal | |
10 | ||
11 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
12 | s\bsy\bys\bsl\bli\bin\bne\be [ -\b-b\bbc\bcd\bde\bew\bwh\bhD\bDi\bil\blm\bmp\bpq\bqr\brs\bsj\bj ] [ -\b-H\bH r\bre\bem\bmo\bot\bte\be ] [ +\b+N\bN ] | |
13 | ||
14 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
15 | _\bS_\by_\bs_\bl_\bi_\bn_\be runs in the background and periodically displays | |
16 | system status information on the status line of the termi- | |
17 | nal. Not all terminals contain a status line. Those that | |
18 | do include the h19, concept 108, Ann Arbor Ambassador, | |
19 | vt100, Televideo 925/950 and Freedom 100. If no flags are | |
20 | given, _\bs_\by_\bs_\bl_\bi_\bn_\be displays the time of day, the current load | |
21 | average, the change in load average in the last 5 minutes, | |
22 | the number of users (followed by a `u'), the number of runn- | |
23 | able process (followed by a `r')[VAX only], the number of | |
24 | suspended processes (followed by a `s')[VAX only], and the | |
25 | users who have logged on and off since the last status | |
26 | report. Finally, if new mail has arrived, a summary of it | |
27 | is printed. If there is unread mail in your mailbox, an | |
28 | asterisk will appear after the display of the number of | |
29 | users. The display is normally in reverse video (if your | |
30 | terminal supports this in the status line) and is right jus- | |
31 | tified to reduce distraction. Every fifth display is done | |
32 | in normal video to give the screen a chance to rest. | |
33 | ||
34 | If you have a file named .who in your home directory, then | |
35 | the contents of that file is printed first. One common use | |
36 | of this feature is to alias chdir, pushd, and popd to place | |
37 | the current directory stack in ~/.who after it changes the | |
38 | new directory. | |
39 | ||
40 | The following flags may be given on the command line. | |
41 | ||
42 | -\b-b\bb Beep once every half hour and twice every hour, | |
43 | just like those obnoxious watches you keep hear- | |
44 | ing. | |
45 | ||
46 | -\b-c\bc Clear the status line for 5 seconds before each | |
47 | redisplay. | |
48 | ||
49 | -\b-d\bd Debug mode -- print status line data in human | |
50 | readable format. | |
51 | ||
52 | -\b-D\bD Print out the current day/date before the time. | |
53 | ||
54 | -\b-e\be Print out only the information. Do not print | |
55 | out the control commands necessary to put the | |
56 | information on the bottom line. This option is | |
57 | useful for putting the output of _\bs_\by_\bs_\bl_\bi_\bn_\be onto | |
58 | the mode line of an emacs window. | |
59 | ||
60 | ||
61 | ||
62 | ||
63 | Printed 7/9/88 June 5, 1986 1 | |
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | SYSLINE(1) UNIX Programmer's Manual SYSLINE(1) | |
71 | ||
72 | ||
73 | ||
74 | -\b-w\bw Window mode -- print the status on the current | |
75 | line of the terminal, suitable for use inside a | |
76 | one line window. | |
77 | ||
78 | -\b-H\bH r\bre\bem\bmo\bot\bte\be Print the load average on the remote host _\br_\be_\bm_\bo_\bt_\be | |
79 | [VAX only]. If the host is down, or is not | |
80 | sending out _\br_\bw_\bh_\bo_\bd packets, then the down time is | |
81 | printed instead. If the prefix "ucb" is | |
82 | present, then it is removed. | |
83 | ||
84 | -\b-h\bh Print out the host machine's name after the time | |
85 | [VAX only]. | |
86 | ||
87 | -\b-l\bl Don't print the names of people who log in and | |
88 | out. | |
89 | ||
90 | -\b-m\bm Don't check for mail. | |
91 | ||
92 | -\b-p\bp Don't report the number of process which are | |
93 | runnable and suspended. | |
94 | ||
95 | -\b-r\br Don't display in reverse video. | |
96 | ||
97 | +\b+N\bN Update the status line every N seconds. The | |
98 | default is 60 seconds. | |
99 | ||
100 | -\b-q\bq Don't print out diagnostic messages if something | |
101 | goes wrong when starting up. | |
102 | ||
103 | -\b-i\bi Print out the process id of the _\bs_\by_\bs_\bl_\bi_\bn_\be process | |
104 | onto standard output upon startup. With this | |
105 | information you can send the alarm signal to the | |
106 | _\bs_\by_\bs_\bl_\bi_\bn_\be process to cause it to update immedi- | |
107 | ately. _\bs_\by_\bs_\bl_\bi_\bn_\be writes to the standard error, so | |
108 | you can redirect the standard output into a file | |
109 | to catch the process id. | |
110 | ||
111 | -\b-s\bs Print "short" form of line by left-justifying | |
112 | _\bi_\bf_\bf escapes are not allowed in the status line. | |
113 | Some terminals (the Televideos and Freedom 100 | |
114 | for example) do not allow cursor movement (or | |
115 | other "intelligent" operations) in the status | |
116 | line. For these terminals, _\bs_\by_\bs_\bl_\bi_\bn_\be normally | |
117 | uses blanks to cause right-justification. This | |
118 | flag will disable the adding of the blanks. | |
119 | ||
120 | -\b-j\bj Force the sysline output to be left justified | |
121 | even on terminals capable of cursor movement on | |
122 | the status line. | |
123 | ||
124 | If you have a file .syslinelock in your home directory, then | |
125 | _\bs_\by_\bs_\bl_\bi_\bn_\be will not update its statistics and write on your | |
126 | ||
127 | ||
128 | ||
129 | Printed 7/9/88 June 5, 1986 2 | |
130 | ||
131 | ||
132 | ||
133 | ||
134 | ||
135 | ||
136 | SYSLINE(1) UNIX Programmer's Manual SYSLINE(1) | |
137 | ||
138 | ||
139 | ||
140 | screen, it will just go to sleep for a minute. This is use- | |
141 | ful if you want to momentarily disable _\bs_\by_\bs_\bl_\bi_\bn_\be. Note that it | |
142 | may take a few seconds from the time the lock file is | |
143 | created until you are guaranteed that _\bs_\by_\bs_\bl_\bi_\bn_\be will not write | |
144 | on the screen. | |
145 | ||
146 | F\bFI\bIL\bLE\bES\bS | |
147 | /etc/utmp names of people who are logged in | |
148 | /dev/kmem contains process table [VAX only] | |
149 | /usr/spool/rwho/whod.* who/uptime information for remote hosts [VAX only] | |
150 | ${HOME}/.who information to print on bottom line | |
151 | ${HOME}/.syslinelock when it exists, sysline will not print | |
152 | ||
153 | A\bAU\bUT\bTH\bHO\bOR\bRS\bS | |
154 | John Foderaro | |
155 | Tom Ferrin converted it to use termcap. | |
156 | Mark Horton added terminfo capability. | |
157 | ||
158 | B\bBU\bUG\bGS\bS | |
159 | If you interrupt the display then you may find your cursor | |
160 | missing or stuck on the status line. The best thing to do | |
161 | is reset the terminal. | |
162 | If there is too much for one line, the excess is thrown | |
163 | away. | |
164 | ||
165 | ||
166 | ||
167 | ||
168 | ||
169 | ||
170 | ||
171 | ||
172 | ||
173 | ||
174 | ||
175 | ||
176 | ||
177 | ||
178 | ||
179 | ||
180 | ||
181 | ||
182 | ||
183 | ||
184 | ||
185 | ||
186 | ||
187 | ||
188 | ||
189 | ||
190 | ||
191 | ||
192 | ||
193 | ||
194 | ||
195 | Printed 7/9/88 June 5, 1986 3 | |
196 | ||
197 | ||
198 |