# script to develope

**URL:** <https://community.unix.com/t/script-to-develope/178759>\
**Category:** Shell Programming and Scripting\
**Created:** [December 9, 2007, 7:04pm UTC](https://community.unix.com/t/script-to-develope/178759 "2007-12-09T19:04:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishalpatel03](https://community.unix.com/letter_avatar/vishalpatel03/32/5_5575768a8748004e209b776fc1b2916d.png) [@vishalpatel03](https://community.unix.com/u/vishalpatel03)\
**Post date:** [December 9, 2007, 7:04pm UTC](https://community.unix.com/t/script-to-develope/178759/1 "2007-12-09T19:04:48Z")

</div>

Hi  
All,

can you please help me to develope this script?  
Any help will be appreciated.

Sender Broadcasting Same Message to Multiple Processes

Write two programs, a sender and a receiver. The sender will take text entered  
at the keyboard, and broadcast it as a message to multiple copies of the  
receiver program. Upon receipt of a message, a receiver outputs its program  
name(argv[0]) and the message content. The sender loops sending entered text as  
message until end of file is encountered at the keyboard. Upon EOF the sender,  
transmits a delimiter message to all receivers. As each receiver finishes with  
the message queue, it transmits a message back to sender. After receiving such  
an acknowledge message from every receiver, the sender removes the message  
queue.

eg.

assume the sender's filename is---msg\_wall\_s  
receiver's filename is ---msg\_wall\_r

$msg\_wall\_s  
Enter message to be sent to all receivers: abcde  
msg\_wall\_r0 received 'abcde'  
msg\_wall\_r1 received 'abcde'  
msg\_wall\_r2 received 'abcde'  
Enter message to be sent to all receivers: xyz  
msg\_wall\_r0 received 'xyz'  
msg\_wall\_r1 received 'xyz'  
msg\_wall\_r2 received 'xyz'  
Enter message to be sent to all receivers: \<CONTROL/D\>  
msg\_wall\_r0 received 'EOF'  
msg\_wall\_r1 received 'EOF'  
msg\_wall\_r2 received 'EOF'  
$

Thanks,  
Vish

---

<div class="post-metadata">

**Author:** ![porter](https://community.unix.com/letter_avatar/porter/32/5_5575768a8748004e209b776fc1b2916d.png) [@porter](https://community.unix.com/u/porter)\
**Post date:** [December 9, 2007, 7:10pm UTC](https://community.unix.com/t/script-to-develope/178759/2 "2007-12-09T19:10:25Z")

</div>

(1) this looks suspiciously like homework

(2) this does not look like a script, it looks more like a C program going by the reference to argv[0]

---

<div class="post-metadata">

**Author:** ![vishalpatel03](https://community.unix.com/letter_avatar/vishalpatel03/32/5_5575768a8748004e209b776fc1b2916d.png) [@vishalpatel03](https://community.unix.com/u/vishalpatel03)\
**Post date:** [December 10, 2007, 5:29pm UTC](https://community.unix.com/t/script-to-develope/178759/3 "2007-12-10T17:29:47Z")

</div>

yeap it's a homework but if you can help me out it will be highly appreciated.

Thanks,  
Vishal

---

<div class="post-metadata">

**Author:** ![porter](https://community.unix.com/letter_avatar/porter/32/5_5575768a8748004e209b776fc1b2916d.png) [@porter](https://community.unix.com/u/porter)\
**Post date:** [December 10, 2007, 7:24pm UTC](https://community.unix.com/t/script-to-develope/178759/4 "2007-12-10T19:24:30Z")

</div>

How do you think you are going to do it?

What bits of functionality do you need?

How are you going to tie them together?

What language are you going to implement this in?

---

<div class="post-metadata">

**Author:** ![vishalpatel03](https://community.unix.com/letter_avatar/vishalpatel03/32/5_5575768a8748004e209b776fc1b2916d.png) [@vishalpatel03](https://community.unix.com/u/vishalpatel03)\
**Post date:** [December 12, 2007, 11:32am UTC](https://community.unix.com/t/script-to-develope/178759/5 "2007-12-12T11:32:26Z")

</div>

can you give psudocode if possible?

Thanks,  
Vishal

---

<div class="post-metadata">

**Author:** ![vgersh99](https://community.unix.com/user_avatar/community.unix.com/vgersh99/32/14851_2.png) [@vgersh99](https://community.unix.com/u/vgersh99)\
**Post date:** [December 12, 2007, 11:47am UTC](https://community.unix.com/t/script-to-develope/178759/6 "2007-12-12T11:47:04Z")

</div>

Pls read the [Rules](http://www.unix.com/unix-dummies-questions-answers/2971-simple-rules-unix-com-forums.html) of these forums - no homework allowed.  
Thread closed!
