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