BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / msgs.0
CommitLineData
362b077f
C
1
2
3
4MSGS(1) UNIX Programmer's Manual MSGS(1)
5
6
7
8N\bNA\bAM\bME\bE
9 msgs - system messages and junk mail program
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 m\bms\bsg\bgs\bs [ -\b-f\bfh\bhl\blp\bpq\bq ] [ number ] [ -number ]
13
14 m\bms\bsg\bgs\bs -\b-s\bs
15
16 m\bms\bsg\bgs\bs -\b-c\bc [ -days ]
17
18D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
19 _\bM_\bs_\bg_\bs is used to read system messages. These messages are
20 sent by mailing to the login `msgs' and should be short
21 pieces of information which are suitable to be read once by
22 most users of the system.
23
24 _\bM_\bs_\bg_\bs is normally invoked each time you login, by placing it
25 in the file ._\bl_\bo_\bg_\bi_\bn (._\bp_\br_\bo_\bf_\bi_\bl_\be if you use /_\bb_\bi_\bn/_\bs_\bh). It will
26 then prompt you with the source and subject of each new mes-
27 sage. If there is no subject line, the first few non-blank
28 lines of the message will be displayed. If there is more to
29 the message, you will be told how long it is and asked
30 whether you wish to see the rest of the message. The possi-
31 ble responses are:
32
33 y\by type the rest of the message.
34
35 RETURN synonym for y.
36
37 n\bn skip this message and go on to the next message.
38
39 -\b- redisplay the last message.
40
41 q\bq drops you out of _\bm_\bs_\bg_\bs; the next time you run the pro-
42 gram it will pick up where you left off.
43
44 s\bs append the current message to the file ``Messages''
45 in the current directory; `s-' will save the previ-
46 ously displayed message. A `s' or `s-' may be fol-
47 lowed by a space and a file name to receive the mes-
48 sage replacing the default ``Messages''.
49
50 m\bm or `m-' causes a copy of the specified message to be
51 placed in a temporary mailbox and _\bm_\ba_\bi_\bl(1) to be
52 invoked on that mailbox. Both `m' and `s' accept a
53 numeric argument in place of the `-'.
54
55 _\bM_\bs_\bg_\bs keeps track of the next message you will see by a
56 number in the file ._\bm_\bs_\bg_\bs_\br_\bc in your home directory. In the
57 directory /_\bu_\bs_\br/_\bm_\bs_\bg_\bs it keeps a set of files whose names are
58 the (sequential) numbers of the messages they represent.
59 The file /_\bu_\bs_\br/_\bm_\bs_\bg_\bs/_\bb_\bo_\bu_\bn_\bd_\bs shows the low and high number of
60
61
62
63Printed 7/9/88 May 9, 1986 1
64
65
66
67
68
69
70MSGS(1) UNIX Programmer's Manual MSGS(1)
71
72
73
74 the messages in the directory so that _\bm_\bs_\bg_\bs can quickly
75 determine if there are no messages for you. If the contents
76 of _\bb_\bo_\bu_\bn_\bd_\bs is incorrect it can be fixed by removing it; _\bm_\bs_\bg_\bs
77 will make a new _\bb_\bo_\bu_\bn_\bd_\bs file the next time it is run.
78
79 The -\b-s\bs option is used for setting up the posting of mes-
80 sages. The line
81
82 msgs: "| /usr/ucb/msgs -s"
83
84 should be include in /_\bu_\bs_\br/_\bl_\bi_\bb/_\ba_\bl_\bi_\ba_\bs_\be_\bs to enable posting of
85 messages.
86
87 The -\b-c\bc option is used for performing cleanup on /_\bu_\bs_\br/_\bm_\bs_\bg_\bs.
88 An entry with the -\b-c\bc option should be placed in
89 /_\bu_\bs_\br/_\bl_\bi_\bb/_\bc_\br_\bo_\bn_\bt_\ba_\bb to run every night. This will remove all
90 messages over 21 days old. A different expiration may be
91 specified on the command line to override the default.
92
93 Options when reading messages include:
94
95 -\b-f\bf which causes it not to say ``No new messages.''.
96 This is useful in your ._\bl_\bo_\bg_\bi_\bn file since this is
97 often the case here.
98
99 -\b-q\bq Queries whether there are messages, printing ``There
100 are new messages.'' if there are. The command ``msgs
101 -q'' is often used in login scripts.
102
103 -\b-h\bh causes _\bm_\bs_\bg_\bs to print the first part of messages only.
104
105 -\b-l\bl option causes only locally originated messages to be
106 reported.
107
108 _\bn_\bu_\bm A message number can be given on the command line,
109 causing _\bm_\bs_\bg_\bs to start at the specified message rather
110 than at the next message indicated by your ._\bm_\bs_\bg_\bs_\br_\bc
111 file. Thus
112
113 msgs -h 1
114
115 prints the first part of all messages.
116
117 -_\bn_\bu_\bm_\bb_\be_\br
118 will cause _\bm_\bs_\bg_\bs to start _\bn_\bu_\bm_\bb_\be_\br messages back from
119 the one indicated by your ._\bm_\bs_\bg_\bs_\br_\bc file, useful for
120 reviews of recent messages.
121
122 -\b-p\bp causes long messages to be piped through _\bm_\bo_\br_\be(1).
123
124 Within _\bm_\bs_\bg_\bs you can also go to any specific message by typ-
125 ing its number when _\bm_\bs_\bg_\bs requests input as to what to do.
126
127
128
129Printed 7/9/88 May 9, 1986 2
130
131
132
133
134
135
136MSGS(1) UNIX Programmer's Manual MSGS(1)
137
138
139
140F\bFI\bIL\bLE\bES\bS
141 /usr/msgs/* database
142 ~/.msgsrc number of next message to be presented
143
144A\bAU\bUT\bTH\bHO\bOR\bRS\bS
145 William Joy
146 David Wasley
147
148S\bSE\bEE\bE A\bAL\bLS\bSO\bO
149 aliases(5), crontab(5), mail(1), more(1)
150
151B\bBU\bUG\bGS\bS
152
153
154
155
156
157
158
159
160
161
162
163
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
192Printed 7/9/88 May 9, 1986 3
193
194
195
196
197
198