MESG(1) — UNIX Programmer’s Manual
NAME
mesg − permit or deny messages
SYNOPSIS
mesg [ n ] [ y ] [ m ]
DESCRIPTION
Mesg with argument n forbids messages via write(1) by revoking non-user write permission on the user’s terminal. Mesg with argument y reinstates permission. Mesg with argument m allows messages from group only. Entered alone, mesg reports the current state without changing its contents.
FILES
/dev/tty\(**
SEE ALSO
DIAGNOSTICS
Exit status is 0 if messages are receivable, 1 if not, 2 on error.
October 27, 1983 — %W%%Q%%Y%