xref: /titanic_51/usr/src/man/man1/msgget.1 (revision 1886f67eb9de99edbcda88765f2c603a30c87fc2)
te
Copyright (c) 2000-2007 AT&T Knowledge Ventures
To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
Portions Copyright (c) 2007, Sun Microsystems, Inc.
MSGGET 1 "Oct 9, 2007"
NAME
msgget - get a message from a message catalog
SYNOPSIS

msgget locale [command:]catalog [set.]number [text]
DESCRIPTION

msgget gets the message corresponding to the parameters. See OPERANDS.

OPERANDS

The following operands are supported: catalog

Specifies the message catalog name.

command

Specifies command-specific message.

locale

Specifies the locale. If locale is - then the current locale is used.

[set].number

Identifies the message by message number and an optional message set. If specified as - , the message set and number are determined by looking up text in the corresponding C locale message catalog.

text

Specifies the text of the message to be output upon error.

EXIT STATUS
0

Successful completion.

>0

An error occurred.

EXAMPLES

Example 1 Getting a Message in the Current Locale

The following example gets msg 1 in the current locale from message catalog hello:

example% msgget - hello 1
hello world
AUTHORS

Glenn Fowler, gsf@research.att.com

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Volatile
SEE ALSO

iconv(1), msgcc(1), msggen(1), attributes(5)