MESG(C) XENIX System V MESG(C)
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.
Page 1 (printed 8/7/87)