mesg(1) DG/UX 4.30 mesg(1)
NAME
mesg - permit or deny messages
SYNOPSIS
mesg [ n ] [ y ]
DESCRIPTION
mesg n Prevents other users from sending you messages
with write(1). (It takes away non-user write
permission on the user's terminal).
mesg y Resets the permission so that you can receive
messages.
mesg Reports the current state without changing it.
EXAMPLES
$ mesg
is y
In the above example, the user checked if messages could be
received at the terminal. The respone "is y" states that
the user can receive messages sent with the "write" command.
$ mesg n
$ mesg
is n
In the above example, the user has turned off the ability to
receive messages.
FILES
/dev/tty*
SEE ALSO
write(1).
DIAGNOSTICS
Exit status is 0 if messages are receivable, 1 if not, 2 on
error.
Licensed material--property of copyright holder(s) Page 1