date and time created 87/02/15 16:03:36 by lepreau
[unix-history] / usr / src / usr.bin / mesg / mesg.1
.\" @(#)mesg.1 6.1 (Berkeley) %G%
.\"
.TH MESG 1 ""
.AT 3
.SH NAME
mesg \- permit or deny messages
.SH SYNOPSIS
.B mesg
[
.B n
] [
.B y
]
.SH DESCRIPTION
.I Mesg
with argument
.B n
forbids messages via
.I write
and
.IR talk (1)
by revoking non-user
write permission on the user's terminal.
.I Mesg
with argument
.B y
reinstates permission.
All by itself,
.I mesg
reports the current state without changing it.
.SH FILES
/dev/tty*
.SH "SEE ALSO"
write(1), talk(1)
.SH DIAGNOSTICS
Exit status is 0 if messages are receivable,
1 if not, 2 on error.