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

  man pages->HP-UX 11i man pages -> mesg (1)              


 mesg(1)                                                             mesg(1)

 NAME    [Toc]    [Back]
      mesg - permit or deny messages to terminal

 SYNOPSIS    [Toc]    [Back]
      mesg [[-] g] [[-] y] [[-] n]

 DESCRIPTION    [Toc]    [Back]
      The command form mesg [-] n forbids messages via write by revoking
      write permission to users without appropriate privilege on the user's
      terminal (see write(1)).  The command form mesg [-] g reinstates
      permission so that only legitimate commands (such as write(1)) can be
      used by other users to send messages.  mesg [-] y allows applications
      such as write or talk to send messages to the user's terminal (that
      is, without restrictions).  mesg without any other argument reports
      the current state without changing it.

 RETURN VALUE    [Toc]    [Back]
      mesg returns the following values:

           0    Messages are receivable.
           1    Messages are not receivable.
           2    An error occurred.

    Environment Variables
      LC_MESSAGES determines the language in which messages are displayed.

      If LC_MESSAGES is not specified in the environment or is set to the
      empty string, the value of LANG is used as a default for each
      unspecified or empty variable.  If LANG is not specified or is set to
      the empty string, a default of "C" (see lang(5)) is used instead of

      If any internationalization variable contains an invalid setting, mesg
      behaves as if all internationalization variables are set to "C".  See

 FILES    [Toc]    [Back]

 SEE ALSO    [Toc]    [Back]

      mesg: SVID2, SVID3, XPG2, XPG3, XPG4

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
mesg IRIX permit or deny messages
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
termios Linux get and set terminal attributes, line control, get and set baud rate, get and set terminal foregroun...
ct HP-UX spawn getty to a remote terminal (call terminal)
syslogd OpenBSD log systems messages
syslogd IRIX log systems messages
syslogd FreeBSD log systems messages
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service