version 1.2, 1996/06/26 05:37:17 |
version 1.3, 1998/09/26 19:55:10 |
|
|
.Op Fl c |
.Op Fl c |
.Op \-days |
.Op \-days |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Msgs |
.Nm msgs |
is used to read system messages. |
is used to read system messages. |
These messages are |
These messages are |
sent by mailing to the login `msgs' and should be short |
sent by mailing to the login `msgs' and should be short |
pieces of information which are suitable to be read once by most users |
pieces of information which are suitable to be read once by most users |
of the system. |
of the system. |
.Pp |
.Pp |
.Nm Msgs |
.Nm msgs |
is normally invoked each time you login, by placing it in the file |
is normally invoked each time you login, by placing it in the file |
.Pa .login |
.Pa .login |
(or |
(or |
|
|
long it is and asked whether you wish to see the rest of the message. |
long it is and asked whether you wish to see the rest of the message. |
The possible responses are: |
The possible responses are: |
.Bl -tag -width Fl |
.Bl -tag -width Fl |
.It Fl y |
.It Ic y |
Type the rest of the message. |
Type the rest of the message. |
.It Ic RETURN |
.It Ic RETURN |
Synonym for y. |
Synonym for |
.It Fl n |
.Ic y . |
|
.It Ic n |
Skip this message |
Skip this message |
and go on to the next message. |
and go on to the next message. |
.It Fl |
.It Ic \&- |
Redisplay the last message. |
Redisplay the last message. |
.It Fl q |
.It Ic q |
Drop out of |
Drop out of |
.Nm msgs ; |
.Nm msgs ; |
the next time |
the next time |
.Nm msgs |
.Nm msgs |
will pick up where it last left off. |
will pick up where it last left off. |
.It Fl s |
.It Ic s |
Append the current message to the file ``Messages'' in the current directory; |
Append the current message to the file ``Messages'' in the current directory; |
`s\-' will save the previously displayed message. A `s' or `s\-' may |
`s\-' will save the previously displayed message. A `s' or `s\-' may |
be followed by a space and a file name to receive the message replacing |
be followed by a space and a file name to receive the message replacing |
the default ``Messages''. |
the default ``Messages''. |
.It Fl m |
.It Ic m |
A copy of the specified message is placed in a temporary |
A copy of the specified message is placed in a temporary |
mailbox and |
mailbox and |
.Xr mail 1 |
.Xr mail 1 |
is invoked on that mailbox. |
is invoked on that mailbox. |
.It Fl p |
.It Ic p |
The specified message is piped through $PAGER, or, if $PAGER is not defined, |
The specified message is piped through $PAGER, or, if $PAGER is not defined, |
.Xr more 1 . |
.Xr more 1 . |
The commands `m', `p', and `s' all accept a numeric argument in place of the `\-'. |
The commands `m', `p', and `s' all accept a numeric argument in place of the `\-'. |
.El |
.El |
.Pp |
.Pp |
.Nm Msgs |
.Nm msgs |
keeps track of the next message you will see by a number in the file |
keeps track of the next message you will see by a number in the file |
.Pa \&.msgsrc |
.Pa \&.msgsrc |
in your home directory. |
in your home directory. |
|
|
The |
The |
.Fl c |
.Fl c |
option is used for performing cleanup on |
option is used for performing cleanup on |
.Pa /var/msgs. |
.Pa /var/msgs . |
An entry with the |
An entry with the |
.Fl c |
.Fl c |
option should be placed in |
option should be placed in |
|
|
Disables the ability to save messages or enter the mailer. It is |
Disables the ability to save messages or enter the mailer. It is |
assumed that $PAGER is set to something secure. |
assumed that $PAGER is set to something secure. |
.It Fl l |
.It Fl l |
Option causes only locally originated messages to be reported. |
Causes only locally originated messages to be reported. |
.It Ar num |
.It Ar num |
A message number can be given |
A message number can be given |
on the command line, causing |
on the command line, causing |
|
|
.Nm msgs |
.Nm msgs |
requests input as to what to do. |
requests input as to what to do. |
.Sh ENVIRONMENT |
.Sh ENVIRONMENT |
.Nm Msgs |
.Nm msgs |
uses the |
uses the |
.Ev HOME |
.Ev HOME |
and |
and |
|
|
.Xr aliases 5 , |
.Xr aliases 5 , |
.\".Xr crontab 5 , |
.\".Xr crontab 5 , |
.Xr mail 1 , |
.Xr mail 1 , |
.Xr more 1 |
.Xr more 1 , |
|
.Xr aliases 5 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm msgs |
.Nm msgs |