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

  man pages->IRIX man pages -> mesg (1)              


MESG(1)								       MESG(1)

NAME    [Toc]    [Back]

     mesg - permit or deny messages

SYNOPSIS    [Toc]    [Back]

     mesg [ y |	n ]

DESCRIPTION    [Toc]    [Back]

     mesg with argument	n forbids messages via write(1)	, talk or other
     utilities by revoking non-user write permission on	the user's terminal.
     The terminal affected is determined by searching for the first terminal
     in	the sequence of	devices	associated with	standard input,	standard
     output and	standard error,	respectively.  mesg with argument y reinstates
     permission.  All by itself, mesg reports the current state	without
     changing it.  Processes with appropriate privileges may be	able to	send
     messages to the terminal independently of the current state.

OPTIONS    [Toc]    [Back]


OPERANDS    [Toc]    [Back]

     The following operands are	supported in the POSIX locale:

     y	  grant	permission to other users to send messages to the terminal

     n	  deny permission to other users to send messages to the terminal

STDIN    [Toc]    [Back]

     Not used.


     The following environment variables affect	the execution of mesg:

     LANG provide a default value for the internationalization variables that
	  are unset or null.  If LANG is unset or null the corresponding value
	  from the implementation-specific default locale will be used.	If any
	  of the internationalization variables	contains an invalid setting,
	  the utility will behave as if	none of	the variables had been

	  if set to a non-empty	string value, override the values of all the
	  other	internationalization variables.

	  determine the	locale for the interpretation of sequences of bytes of
	  text data as characters (for example,	single - as opposed to multibyte
 - characters in arguments).

									Page 1

MESG(1)								       MESG(1)

	  determine the	locale that should be used to affect the format	and
	  contents of diagnostic messages written to standard error.

	  determine the	location of message catalogs for the processing	of

STDOUT    [Toc]    [Back]

     If	no operand is specified, mesg displays the current terminal state in
     an	unspecified format.

STDERR    [Toc]    [Back]

     Used donly	for diagnostic messages.

EXIT STATUS    [Toc]    [Back]

     The following exit	values are returned:
     0	 receiving messages is allowed
     1	 receiving messages is not allowed
     >1	 an error occurred

FILES    [Toc]    [Back]

     /usr/lib/locale/locale<b>/LC_MESSAGES/uxcore language-specific message file
     [See LANG on environ(5).]

SEE ALSO    [Toc]    [Back]


DIAGNOSTICS    [Toc]    [Back]

     Exit status is 0 if messages are receivable, 1 if not, 2 on error.

									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
mesg HP-UX permit or deny messages to terminal
pam_deny FreeBSD Deny PAM module
grantpt Tru64 Permit access to the slave pseudoterminal device
writesrv Tru64 Lets users send messages to and receive messages from a remote system
ldr_xattach Tru64 Attache to another process to permit loading/unloading of modules in that process' address space
syslogd IRIX log systems messages
syslogd OpenBSD log systems messages
syslogd FreeBSD log systems messages
syslogd HP-UX log system messages
ERR_print_errors NetBSD print error messages
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service