12-05-2008
By using following command you may able to idetify system details related to the IPC.
#ipcs -a
Look into the man page of ipcs to get more details
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All
Does anyone know what is meant by PRINTER STATUS CONNECT concerning print queues?
At work we run a Perle/Connectix JetStream 8500 (RJ45 Model) to connect our dot matrix printers and often we get the Connect Status.
Nobody I speak to knows what the status means. When the printer... (0 Replies)
Discussion started by: nickbungus
0 Replies
2. HP-UX
Hello,
My question is related to "pipcs -qa" command under HP-UX 11i PA-RISC 64 bits.
We have a little C program that creates posix ipc message queues using the mq_open() system function.
The program fail with 'No space left on device' error when we create big queues. What is the system... (6 Replies)
Discussion started by: cadanir
6 Replies
3. UNIX for Advanced & Expert Users
Hi all,
Is there a situation like system assigning same ID's for semaphores and shared memory at the same time.
Ex: When I try to create 10 Shared memory objects with starting key as 0x1500 and 10 semaphore objects with starting key as 0x1234 in the same program. Assume those are not deleted... (2 Replies)
Discussion started by: gkreddy
2 Replies
4. SCO
Hwey I manage a Unix box where I ama having multiple printer problems. the only way to get printers to print again is by rebooting. I stop and start services with no luck. Any one have any ideas? It can go weeks with being OK but then any given printer can go and cause the entire print queue to... (6 Replies)
Discussion started by: uk2us88
6 Replies
5. UNIX for Dummies Questions & Answers
Hi everybody,
this is the situation. there is a programm XYZ which opens a message queue with the key 47110815 and waits for a SIGUSR1. After receiving this signal it sends a message with type 100 and a number (as ASCII) in the message-body.
I have to write a prog which frist sends the... (1 Reply)
Discussion started by: daredevil82m
1 Replies
6. UNIX for Dummies Questions & Answers
Dear all,
I'm a new guy doing some quntum calculation with gaussian on my rocks clusters. Recently, my cluster upgraded to rocks 5.3, but something strange happened. Everything goes correct except a serious problem. when I summit my gaussian job with script to sge queue, the job does run,... (0 Replies)
Discussion started by: liuzhencc
0 Replies
7. Solaris
I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies
8. 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
9. AIX
I am using AIX 5.
Just swapped over an HP printer.
The old printer was on a JetDirect box. The new printer connects directly to the network. Using the same IP address to print to, so the only alteration I made was to edit the etc/qconfig file to alter the port setting from 9103 to 9100. I can... (2 Replies)
Discussion started by: charding
2 Replies
10. Programming
I'm currently studying IPC, I have a first program
A: Do an exec for B and wait
B: Receive through a fifo a string from a third program "C" and have to resend it to A
I was thinking to open a pipe in A before the exec, then passing fd to B as an argument
if(pipe(fd)==-1){
... (1 Reply)
Discussion started by: cifz
1 Replies
LEARN ABOUT OSF1
msqid_ds
msqid_ds(4) Kernel Interfaces Manual msqid_ds(4)
NAME
msqid_ds - Defines a message queue
SYNOPSIS
#include <sys/msg.h>
struct msqid_ds{ struct ipc_perm msg_perm; struct msg *msg_first; struct msg *msg_last; u_short msg_cbytes;
u_short msg_qnum; u_short msg_qbytes; u_short msg_lspid; ushort msg_lrpid; time_t msg_stime; time_t
msg_rtime; time_t msg_ctime; };
DESCRIPTION
The msqid_ds structure defines a message queue associated with a message queue ID. There is one queue per message queue ID. Collectively,
the queues are stored as an array, with message queue IDs serving as an index into the array.
A message queue is implemented as a linked list of messages, with msg_first amd msg_last pointing to the first and last messages on the
queue.
The IPC permissions for the message queue are implemented in a separate, but associated, ipc_perm structure.
A message queue is created indirectly via the msgget() call. If msgget() is called with a non-existent message queue ID, the kernel allo-
cates a new msqid_ds structure, initializes it, and returns the message queue ID that is to be associated with the message queue.
FIELDS
The ipc_perm structure that defines permissions for message operations. See NOTES. A pointer to the first message on the queue. A
pointer to the last message on the queue. The current number of bytes on the queue. The number of messages currently on the queue. The
maximum number of bytes allowed on the queue. The process ID of the last process that called msgsnd() for the queue. The process ID of
the last process that called msgrcv() for the queue. The time of the last msgsnd() operation. The time of the last msgrcv() operation.
The time of the last msgctl() operation that changed a member of the msqid_ds structure.
NOTES
The msg_perm field identifies the associated ipc_perm structure that defines the permissions for operations on the message queue. The
ipc_perm structure (from the sys/ipc.h header file) is shown here. struct ipc_perm {
ushort uid; /* owner's user id */
ushort gid; /* owner's group id */
ushort cuid; /* creator's user id */
ushort cgid; /* creator's group id */
ushort mode; /* access modes */
ushort seq; /* slot usage sequence number */
key_t key; /* key */ }; The mode field is a 9-bit field that contains the permissions for message
operations. The first three bits identify owner permissions; the second three bits identify group permissions; and the last three bits
identify other permissions. In each group, the first bit indicates read permission; the second bit indicates write permission; and the
third bit is not used.
RELATED INFORMATION
Functions: msgctl(2), msgget(2), msgrcv(2), msgsnd(2) delim off
msqid_ds(4)