Query: mesg
OS: osx
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MESG(1) BSD General Commands Manual MESG(1)NAMEmesg -- display (do not display) messages from other usersSYNOPSISmesg [n | y]DESCRIPTIONThe mesg utility is invoked by a user to control write access others have to a terminal device. Write access is allowed by default, and pro- grams such as talk(1) and write(1) may display messages on the terminal. The first terminal device in the sequence of devices associated with standard input, standard output and standard error is affected. Options available: n Disallows messages. y Permits messages to be displayed. If no arguments are given, mesg displays the present message status to the standard output.EXAMPLESDisallow messages from other users to the current terminal: mesg n Allow messages from other users to ttyp1 (assuming you are also logged in on that terminal): mesg y </dev/ttyp1DIAGNOSTICSThe mesg utility exits with one of the following values: 0 Messages are allowed. 1 Messages are not allowed. >1 An error has occurred.COMPATIBILITYPrevious versions of the mesg utility wrote the message status to the standard error output and affected the terminal attached to standard error without first trying the standard input or output devices.SEE ALSObiff(1), talk(1), wall(1), write(1)STANDARDSThe mesg utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').HISTORYA mesg command appeared in Version 1 AT&T UNIX.BSDMay 5, 2002 BSD
Related Man Pages |
---|
mesg(1) - opensolaris |
mesg(1) - mojave |
mesg(1) - suse |
mesg(1p) - suse |
mesg(1) - php |
Similar Topics in the Unix Linux Community |
---|
error mesg help |
UNIX talk |
CuteCom 0.14.2 (Default branch) |
Messages |
Write terminal contents into a one file in UNIX |