Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mesg(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

write(C)


 mesg(C)                         19 June 1992                         mesg(C)


 Name

    mesg - permit or deny messages sent to a terminal

 Syntax

    mesg [ n ] [ y ]

 Description

    The mesg command with argument n forbids messages via write(C) by revok-
    ing non-user write permission on the user's terminal.  mesg with argument
    y reinstates permission.  By itself, mesg reports the current state
    without changing it.

 File

    /dev/tty*

 See also

    write(C)

 Diagnostics

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

 Standards conformance

    mesg is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026