*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> mesg (1)              
Title
Content
Arch
Section
 

MESG(1)

Contents


NAME    [Toc]    [Back]

     mesg -- display (do not display) messages from other users

SYNOPSIS    [Toc]    [Back]

     mesg [n | y]

DESCRIPTION    [Toc]    [Back]

     The mesg utility is invoked by a user to control write access others have
     to a terminal device.  Write access is allowed by default, and programs
     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.

     The following options are available:

     n	     Disallow messages.

     y	     Permit messages to be displayed.

     If no arguments are given, mesg displays the present message status to
     the standard output.

EXAMPLES    [Toc]    [Back]

     Disallow 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/ttyp1

DIAGNOSTICS    [Toc]    [Back]

     The mesg utility exits with one of the following values:

	    0	 Messages are allowed.
	    1	 Messages are not allowed.
	   >1	 An error has occurred.

COMPATIBILITY    [Toc]    [Back]

     Previous 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 ALSO    [Toc]    [Back]

      
      
     biff(1), talk(1), wall(1), write(1)

STANDARDS    [Toc]    [Back]

     The mesg utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').

HISTORY    [Toc]    [Back]

     A mesg command appeared in Version 1 AT&T UNIX.


FreeBSD 5.2.1			  May 5, 2002			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
w OpenBSD display users who are logged on and what they are doing
rusers Tru64 Display a list of users who are logged in to a remote machine
niserror HP-UX display NIS+ error messages
pw FreeBSD create, remove, modify & display system users and groups
writesrv Tru64 Lets users send messages to and receive messages from a remote system
sd HP-UX display and monitor job information and create and remove jobs; invoke graphical user interface to display and
swjob HP-UX display and monitor job information and create and remove jobs; invoke graphical user interface to display and
XmGetXmDisplay IRIX A Display function that returns the XmDisplay object ID for a specified display
XmGetXmDisplay Tru64 A Display function that returns the XmDisplay object ID for a specified display
XmGetXmDisplay HP-UX A Display function that returns the XmDisplay object ID for a specified display
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service