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

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

Contents


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]

     None.

OPERANDS    [Toc]    [Back]

     The following operands are	supported in the POSIX locale:

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

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

STDIN    [Toc]    [Back]

     Not used.

ENVIRONMENT VARIABLES    [Toc]    [Back]

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

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

     LC_CTYPE
	  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)



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

     NLSPATH
	  determine the	location of message catalogs for the processing	of
	  LC_MESSAGES.

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]

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

SEE ALSO    [Toc]    [Back]

      
      
     write(1).

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