Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mesg(1) — SunOS 5.5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

talk(1)

write(1)

environ(5)

mesg(1)

NAME

mesg − permit or deny messages

SYNOPSIS

mesg [ −n | −y | n | y ]

AVAILABILITY

SUNWcsu

DESCRIPTION

The mesg utility will control whether other users are allowed to send messages via write, talk(1) or other utilities to a terminal device.  The terminal device affected is determined by searching for the first terminal in the sequence of devices associated with standard input, standard output and standard error, respectively.  With no arguments, mesg reports the current state without changing it.  Processes with appropriate privileges may be able to send messages to the terminal independent of the current state. 

OPTIONS

The following options are supported:

−n | n Deny permission to other users to send message to the terminal. See write(1). 

−y | y Grant permission to other users to send messages to the terminal. 

ENVIRONMENT

See environ(5) for descriptions of the following environment variables that affect the execution of mesg: LC_CTYPE, LC_MESSAGES, and NLSPATH. 

EXIT STATUS

0 if messages are receivable

1 if messages are not receivable

2 on error. 

FILES

/dev/tty∗
terminal devices

SEE ALSO

talk(1), write(1), environ(5)

SunOS 5.5.1  —  Last change: 1 Feb 1995

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