Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

msgget(1) [opensolaris man page]

msgget(1)							   User Commands							 msgget(1)

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 | +-----------------------------+-----------------------------+ |Availability |SUNWastdev | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
iconv(1), msgcc(1), msggen(1), attributes(5) SunOS 5.11 9 Oct 2007 msgget(1)

Check Out this Related Man Page

gencat(1int)															      gencat(1int)

Name
       gencat - generate a formatted message catalog

Syntax
       gencat catalog_file [source_file ...]

Description
       The  command  takes  one or more message source files and either creates a new catalog or merges new message text into an existing catalog.
       You should use the extension for message text files (for example, ) and the extension for catalogs (for example, ) to  process  files  with
       the command.

       In  some  cases, a formatted message catalog exists that has the same name the one that is creating.  When this occurs, merges the messages
       from the source message catalogs into this existing formatted message catalog.  The command merges the source  message  catalogs  into  the
       formatted  message  catalog  in	the same manner as it merges a group of source message catalogs.  If a source message catalog contains the
       same set number or message number as a set or message in the formatted message catalog, the source  message  catalog  set  or  message  has
       precedence.  For example, if both the source and formatted message catalogs contain a message number 25, the message text for message 25 in
       the source message catalog replaces the message text in the formatted message catalog.  Thus, when source message catalogs are merged  with
       formatted message catalogs, the formatted catalogs are updated.

       If you do not specify a source file, the command accepts message source data from standard input.

       Numeric message source files are portable between X/Open systems.

       For information on the source format for messages files, see the Guide to Developing International Software.

Restrictions
       The command does not accept mnemonic identifiers.  You must run the command if you want to use mnemonic identifiers.

See Also
       extract(1int), mkcatdefs(1int), trans(1int), catgets(3int), catopen(3int), intro(3int), environ(5int)
       Guide to Developing International Software

																      gencat(1int)
Man Page

12 More Discussions You Might Find Interesting

1. Programming

Text Modification and page I/O error

Hi!, while launching my C application on HP-UX 10.2 workstation, I get the following error message sometime: Pid 9951 killed due to text modification or page I/O error Could someone tell me what does this error means?? and how is this caused? Thanx in Advance, JP (4 Replies)
Discussion started by: jyotipg
4 Replies

2. Programming

about msgget troble

hi,all i have in trouble about msgget. i create a queue and the program like blow: openMsg( pid_t key ) { .... int msgid; .... msgid=msgget(key,IPC_CREAT|IPC_EXCL|0666) if( msgid<=0 ){ fprintf( stdout,"%s,%d",strerror(errno),errno ); return -1; ... (9 Replies)
Discussion started by: subrain
9 Replies

3. UNIX for Dummies Questions & Answers

Ipc Details

hai, i am doing my masters degree in computers.please any one tell me about fork(),semaphores,mutex,messaging queues,messaging using pipes ,and msgget(),msgrecv() funtions in ipc programming . i have exam on that i have a book but in that they not given clearly. hope u will ... (2 Replies)
Discussion started by: G.Vishnuvardhan
2 Replies

4. Programming

Problem with msgget()

Hi, I am having problem with msgget() function. Here is the problem that I am having on Unix : I have two processes sender and receiver. Sender generates queue (msgget()) with some key e.g. 938, for output. Receiver reads from the same queue. i.e. receiver also tries to get queue... (2 Replies)
Discussion started by: Ashwini
2 Replies

5. UNIX for Dummies Questions & Answers

Word Count for a range of text

Help Please! I have alot of text that I would like to count for a range of text. logevents.1:<190> Oct 30 02:59:42 N/A : 6|4145|RC|CAC: Terminated logevents.1:<190> Oct 30 02:59:42 N/A : 6|4097|RC|CAC: Deleted logevents.1:<190> Oct 30 02:59:44 N/A : 6|4145|RC|CAC: Terminated ... (5 Replies)
Discussion started by: bpfoster7
5 Replies

6. UNIX for Dummies Questions & Answers

suppressing an error message using the "ls" command

hi I'm new here so my question maybe be retarded or out of place: Is there a way to suppress the "No such file or directory" error message when using the "ls" command ? thanks (5 Replies)
Discussion started by: basher400
5 Replies

7. UNIX for Dummies Questions & Answers

How to select text within the second ()?

Hello, Can someone advise me how to select the text within the second bracket of a string in shell script? For example, the input file: some message (string A) some message (string B) some message (string C) some message (string D) some message (string E) The number of bracket is random... (4 Replies)
Discussion started by: hanul
4 Replies

8. AIX

errpt not giving a result

my system get rebooted by its self after its came up i try to check the error log P690/>errpt | more Cannot open error message catalog /usr/lib/nls/msg/en_US/codepoint.cat. The error report will still run, but it will not have explanatory messages P690/>ls -lrt... (1 Reply)
Discussion started by: thecobra151
1 Replies

9. Programming

msgget message queue always get permission denied

I want to use msgget() to obtain a message queue between two processes, here is my code: the first one create the mq, the second one open it and add a message to it. But when I execute the second one, I get permission denied. I've already desperately tried everything I can think of to solve this... (2 Replies)
Discussion started by: tefino
2 Replies

10. What is on Your Mind?

David Korn and Glenn Fowler laid off

I just got word, that David Korn, father of the kornshell, and his co-worker Glenn Fowler were laid off by AT&T. Here is a posting by Glenn Fowler on the ksh-users mailing list (removed email addresses): As has been pointed out several times on the AST and UWIN lists, AT&T gives very little... (0 Replies)
Discussion started by: hergp
0 Replies

11. Programming

Msgget(2) returns 0 - a workaround fix

Greetings: I am posting this because my searches for this problem only came up with two posts and no helpful suggestions. I have a "solution" (read work-around hack) and have not tried yet to find a root cause, and may never because I am busy doing other things (read working to pay the bills). ... (10 Replies)
Discussion started by: mr_bandit
10 Replies

12. Shell Programming and Scripting

Slack message multi line from UNIX script

Hi OS: Redhat Version 7.5 Enterprise Trying to post message from shell script to Slack channel and trying below code: text="$msg" text1="$lmsg" if ] then echo "No text specified" exit 1 fi escapedText=$(echo $text | $text1 | sed 's/"/\"/g' | sed "s/'/\'/g" )... (13 Replies)
Discussion started by: onenessboy
13 Replies