date and time created 87/02/15 16:03:36 by lepreau
[unix-history] / usr / src / usr.bin / mesg / mesg.1
... / ...
CommitLineData
1.\" @(#)mesg.1 6.1 (Berkeley) %G%
2.\"
3.TH MESG 1 ""
4.AT 3
5.SH NAME
6mesg \- 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
16with argument
17.B n
18forbids messages via
19.I write
20and
21.IR talk (1)
22by revoking non-user
23write permission on the user's terminal.
24.I Mesg
25with argument
26.B y
27reinstates permission.
28All by itself,
29.I mesg
30reports the current state without changing it.
31.SH FILES
32/dev/tty*
33.SH "SEE ALSO"
34write(1), talk(1)
35.SH DIAGNOSTICS
36Exit status is 0 if messages are receivable,
371 if not, 2 on error.