4BSD/usr/man/cat1/mesg.1

Compare this file to the similar file:
Show the results in this format:




MESG(1)             UNIX Programmer's Manual              MESG(1)



NAME
     mesg - permit or deny messages

SYNOPSIS
     mesg [ n ] [ y ]

DESCRIPTION
     _M_e_s_g with argument n forbids messages via _w_r_i_t_e(1) by revok-
     ing non-user write permission on the user's terminal.  _M_e_s_g
     with argument y reinstates permission.  All by itself, _m_e_s_g
     reports the current state without changing it.

FILES
     /dev/tty*

SEE ALSO
     write(1)

DIAGNOSTICS
     Exit status is 0 if messages are receivable, 1 if not, 2 on
     error.


































Printed 11/10/80                                                1