Unix/Linux Go Back    

OpenSolaris 2009.06 - man page for mesg (opensolaris section 1)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

mesg(1) 				  User Commands 				  mesg(1)

       mesg - 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:

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

       -y|y	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:

       0     if messages are receivable.

       1     if messages are not receivable.

       2     on error.

       /dev/tty*      terminal devices

       /dev/pts/*     terminal devices

       See attributes(5) for descriptions of the following attributes:

       |      ATTRIBUTE TYPE	     |	    ATTRIBUTE VALUE	   |
       |Availability		     |SUNWcsu			   |
       |Interface Stability	     |Standard			   |

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

SunOS 5.11				   31 Oct 1997					  mesg(1)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 02:13 AM.