Commit | Line | Data |
---|---|---|
813d70e0 | 1 | .\" @(#)mesg.1 6.1 (Berkeley) %G% |
60192166 | 2 | .\" |
813d70e0 | 3 | .TH MESG 1 "" |
60192166 KM |
4 | .AT 3 |
5 | .SH NAME | |
6 | mesg \- permit or deny messages | |
7 | .SH SYNOPSIS | |
8 | .B mesg | |
9 | [ | |
10 | .B n | |
11 | ] [ | |
12 | .B y | |
13 | ] | |
14 | .SH DESCRIPTION | |
15 | .I Mesg | |
16 | with argument | |
17 | .B n | |
18 | forbids messages via | |
7846d13a KM |
19 | .I write |
20 | and | |
21 | .IR talk (1) | |
60192166 KM |
22 | by revoking non-user |
23 | write permission on the user's terminal. | |
24 | .I Mesg | |
25 | with argument | |
26 | .B y | |
27 | reinstates permission. | |
28 | All by itself, | |
29 | .I mesg | |
30 | reports the current state without changing it. | |
31 | .SH FILES | |
32 | /dev/tty* | |
33 | .SH "SEE ALSO" | |
7846d13a | 34 | write(1), talk(1) |
60192166 KM |
35 | .SH DIAGNOSTICS |
36 | Exit status is 0 if messages are receivable, | |
37 | 1 if not, 2 on error. |