1msgget(1) User Commands msgget(1)
2
3
4
6 msgget - get a message from a message catalog
7
9 msgget locale [command:]catalog [set.]number [text]
10
11
13 msgget gets the message corresponding to the parameters. See OPERANDS.
14
16 The following operands are supported:
17
18 catalog Specifies the message catalog name.
19
20
21 command Specifies command-specific message.
22
23
24 locale Specifies the locale. If locale is - then the current
25 locale is used.
26
27
28 [set].number Identifies the message by message number and an
29 optional message set. If specified as - , the message
30 set and number are determined by looking up text in the
31 corresponding C locale message catalog.
32
33
34 text Specifies the text of the message to be output upon
35 error.
36
37
39 0 Successful completion.
40
41
42 >0 An error occurred.
43
44
46 Example 1 Getting a Message in the Current Locale
47
48
49 The following example gets msg 1 in the current locale from message
50 catalog hello:
51
52
53 example% msgget - hello 1
54 hello world
55
56
57
59 Glenn Fowler, gsf@research.att.com
60
62 See attributes(5) for descriptions of the following attributes:
63
64
65
66
67 ┌─────────────────────────────┬─────────────────────────────┐
68 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
69 ├─────────────────────────────┼─────────────────────────────┤
70 │Availability │SUNWastdev │
71 ├─────────────────────────────┼─────────────────────────────┤
72 │Interface Stability │Volatile │
73 └─────────────────────────────┴─────────────────────────────┘
74
76 iconv(1), msgcc(1), msggen(1), attributes(5)
77
78
79
80SunOS 5.11 9 Oct 2007 msgget(1)