The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Shell Question: how to print the shell script name ? meili100 UNIX for Dummies Questions & Answers 3 07-01-2008 02:55 PM
Shell script question jbou1087 Shell Programming and Scripting 2 05-06-2008 03:01 AM
shell script question tselvanin Shell Programming and Scripting 2 08-28-2007 10:53 PM
A shell script question surjyap Shell Programming and Scripting 2 11-24-2005 05:48 AM
build kernel ,question? sheep BSD 2 03-27-2005 08:02 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-09-2007
vishalpatel03 vishalpatel03 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 33
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
  #2 (permalink)  
Old 12-09-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
This looks very similar to script to develope
  #3 (permalink)  
Old 12-10-2007
vishalpatel03 vishalpatel03 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 33
nope it's not the same..
  #4 (permalink)  
Old 12-10-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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?
  #5 (permalink)  
Old 12-12-2007
vishalpatel03 vishalpatel03 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 33
can you give psudocode if possible?

Thanks,
Vishal
  #6 (permalink)  
Old 12-12-2007
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
Pls read the Rules of these forums - no homework allowed.
Thread closed!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0