MESG(C) UNIX System V
Name
mesg - permits or denies messages sent to a terminal
Syntax
mesg [ n ] [ y ]
Description
mesg with argument n forbids messages via write(C) by
revoking nonuser write permission on the user's terminal.
mesg with argument y reinstates permission. All by itself,
mesg reports the current state without changing it.
Files
/dev/tty*
See Also
write(C)
Diagnostics
Exit status is 0 if messages are receivable, 1 if not, 2 on
error.
Standards Conformance
mesg is conformant with:
AT&T SVID Issue 2, Select Code 307-127;
and The X/Open Portability Guide II of January 1987.
(printed 8/28/89) MESG(C)