MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


User Commands                                             mesg(1)



NAME
     mesg - permit or deny messages

SYNOPSIS
     mesg [-n  -y  n  y]


DESCRIPTION
     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.

OPTIONS
     The following options are supported:

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


     -yy     Grants permission to other users to  send  messages
              to the terminal.


ENVIRONMENT VARIABLES
     See environ(5) for descriptions of the following environment
     variables  that  affect the execution of mesg: LANG, LCAL,
     LCTYPE, LCMESAGES, and NLSPATH.

EXIT STATUS
     The following exit values are returned:

     0     if messages are receivable.


     1     if messages are not receivable.


     2     on error.


FILES
     /dev/tty*      terminal devices


     /dev/pts/*     terminal devices




SunOS 5.11          Last change: 31 Oct 1997                    1






User Commands                                             mesg(1)



ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Availability                 SUNWcsu                     
    
     Interface Stability          Standard                    
    


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






































SunOS 5.11          Last change: 31 Oct 1997                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™