question to build a shell script

Hi
All,

I want to develope a script.
can you please give me solution to this script?

Several Processes Reporting Status back to a Master

Write two programs that communicate using message queues. One program (the
master) will receive messages periodically sent by multiple copies of the other
program (senders). The messages sent might simulate status or degree of
completion of a sender. Upon receipt, the master should print the message with
some identification of the sender. Prior to termination, each sender will send
a delimiter message. After receiving delimiter messages from all the senders,
the master will remove the message queue and exit.

eg.

assume the master's filename is msg_rpt_m

$msg_rpt_m
>From 14437: status mesg #1
>From 14438: status mesg #1
>From 14439: status mesg #1
>From 14437: status mesg #2
>From 14438: status mesg #2
>From 14439: status mesg #2
>From 14437: status mesg #3
>From 14438: status mesg #3
>From 14439: status mesg #3
>From 14437: status mesg #4
>From 14438: status mesg #4
>From 14439: status mesg #4
>From 14437: status mesg #5
>From 14438: status mesg #5
>From 14439: DONE
>From 14437: DONE
>From 14438: status mesg #6
>From 14438: DONE
$

Thanks,
Vishal

This looks very similar to http://www.unix.com/shell-programming-scripting/46379-script-develope.html

nope it's not the same..

Have you looked at the message queue API?

What functions are appropriate to the client and which to the server?

How are you going to build the client and server?

How are you going to test the solution?

can you give psudocode if possible?

Thanks,
Vishal

Pls read the Rules of these forums - no homework allowed.
Thread closed!