跳过导航链接 | |
退出打印视图 | |
手册页第 1 部分:用户命令 Oracle Solaris 11.1 Information Library (简体中文) |
- permit or deny messages
mesg [-n | -y | n | y]
The mesg utility will control whether other users are allowed to send messages via write(1), 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.
The following options are supported:
Denies permission to other users to send message to the terminal. See write(1).
Grants permission to other users to send messages to the terminal.
See environ(5) for descriptions of the following environment variables that affect the execution of mesg: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH.
The following exit values are returned:
if messages are receivable.
if messages are not receivable.
on error.
terminal devices
terminal devices
See attributes(5) for descriptions of the following attributes:
|