32v 1m mesg

From Computer History Wiki
Jump to: navigation, search

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*
    /dev

SEE ALSO

    write(1)

DIAGNOSTICS

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