12-16-2005
Do you mean message queues in unix? The best way to learn about those is to read the man pages.
msgget is here. You can find links to msgctl, msgsnd and msgrcv at the bottom of the page.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Does anyone know why I got this message when I tried to print my file on Unix?
THANK YOU! (1 Reply)
Discussion started by: whatisthis
1 Replies
2. Programming
Hello,
i need to write a message queue "chat server", that should work only localy.
Can anyone please help me with some ideas and peshaps code. I'm studying the UNIX IPC mechanisms right now. So far, i understand how it works but i still cannot get an idea how to write a chat programm...
... (2 Replies)
Discussion started by: etenv
2 Replies
3. Shell Programming and Scripting
hi
how to find the queue depth of MQ Queue using unix
please its very urgent (0 Replies)
Discussion started by: Satyak
0 Replies
4. UNIX for Advanced & Expert Users
Hi All,
Can anyone tell me how to clear list of queues in a file?
My file FILE1 has 3 queues
FILE1
FirstQueue
SecondQueue
ThirdQueue
I want to clear all these queues which belong to the same Qmanager from another script...
Can anyone help me for this..
Thanks in... (0 Replies)
Discussion started by: Ch Bushu
0 Replies
5. AIX
Hi,
We have a problem with remote printers installed on our server.
Consistently, the printer status is ready but the impressions of the queue are waiting therefore blocked. To unblock the situation, we must launch stopsrc qdaemon-s-s and startsrc qdaemon to reactivate the queue.
Thank you... (2 Replies)
Discussion started by: GBAGO
2 Replies
6. UNIX for Dummies Questions & Answers
Hi everyone.
I have a lot of programs i want to run on some data files, they need to be done sequentially. Often the output from one program is the input for the next.
e.g
$ progA data1 > data1.A
$ progB data1.A > data1.AB
$ progC data1.AB > data1.ABC
repeat on data2, 3, 4, 5, 6 etc
... (4 Replies)
Discussion started by: Jay-pea
4 Replies
7. Programming
A program have to receive signals and work agreed with it, but the process have to receive more than one signal when it is attending other. Those have to be queued to be attended later recived.
how can i do that?
thanks. (2 Replies)
Discussion started by: marmaster
2 Replies
8. Shell Programming and Scripting
Hi All,
We have SuoOs and Linux servers.
May i know how do we find the queue depth of IBM MQ from server. (2 Replies)
Discussion started by: Girish19
2 Replies
LEARN ABOUT POSIX
sys_msg.h
<sys/msg.h>(P) POSIX Programmer's Manual <sys/msg.h>(P)
NAME
sys/msg.h - XSI message queue structures
SYNOPSIS
#include <sys/msg.h>
DESCRIPTION
The <sys/msg.h> header shall define the following data types through typedef:
msgqnum_t
Used for the number of messages in the message queue.
msglen_t
Used for the number of bytes allowed in a message queue.
These types shall be unsigned integer types that are able to store values at least as large as a type unsigned short.
The <sys/msg.h> header shall define the following constant as a message operation flag:
MSG_NOERROR
No error if big message.
The msqid_ds structure shall contain the following members:
struct ipc_perm msg_perm Operation permission structure.
msgqnum_t msg_qnum Number of messages currently on queue.
msglen_t msg_qbytes Maximum number of bytes allowed on queue.
pid_t msg_lspid Process ID of last msgsnd
().
pid_t msg_lrpid Process ID of last msgrcv
().
time_t msg_stime Time of last msgsnd
().
time_t msg_rtime Time of last msgrcv
().
time_t msg_ctime Time of last change.
The pid_t, time_t, key_t, size_t, and ssize_t types shall be defined as described in <sys/types.h> .
The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.
int msgctl(int, int, struct msqid_ds *);
int msgget(key_t, int);
ssize_t msgrcv(int, void *, size_t, long, int);
int msgsnd(int, const void *, size_t, int);
In addition, all of the symbols from <sys/ipc.h> shall be defined when this header is included.
The following sections are informative.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
<sys/ipc.h> , <sys/types.h> , msgctl(), msgget(), msgrcv(), msgsnd()
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE
/The Open Group 2003 <sys/msg.h>(P)