Commit | Line | Data |
---|---|---|
89d2fa3a KB |
1 | .\" Copyright (c) 1987 Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms are permitted | |
57a981eb KB |
5 | .\" provided that the above copyright notice and this paragraph are |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
89d2fa3a | 15 | .\" |
57a981eb | 16 | .\" @(#)mesg.1 6.3 (Berkeley) %G% |
60192166 | 17 | .\" |
813d70e0 | 18 | .TH MESG 1 "" |
60192166 KM |
19 | .AT 3 |
20 | .SH NAME | |
21 | mesg \- permit or deny messages | |
22 | .SH SYNOPSIS | |
23 | .B mesg | |
24 | [ | |
25 | .B n | |
26 | ] [ | |
27 | .B y | |
28 | ] | |
29 | .SH DESCRIPTION | |
89d2fa3a KB |
30 | \fIMesg\fP with argument \fBn\fP forbids messages via \fIwrite\fP |
31 | and \fItalk\fP by revoking non-user write permission on the user's | |
32 | terminal. \fIMesg\fP with argument \fBy\fP reinstates permission. | |
33 | \fIMesg\fP without arguments reports the current state without | |
34 | changing it. | |
60192166 KM |
35 | .SH FILES |
36 | /dev/tty* | |
37 | .SH "SEE ALSO" | |
7846d13a | 38 | write(1), talk(1) |
60192166 | 39 | .SH DIAGNOSTICS |
89d2fa3a | 40 | Exit status is 0 if messages are receivable, 1 if not, -1 on error. |