The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Java Parallel Processing Framework 1.2 (Default branch) iBot Software Releases - RSS News 0 05-06-2008 05:50 PM
Java Parallel Processing Framework 1.1 (Default branch) iBot Software Releases - RSS News 0 02-19-2008 03:00 PM
Java Parallel Processing Framework 1.0 GA (Default branch) iBot Software Releases - RSS News 0 12-27-2007 03:50 PM
parallel processing audippa Shell Programming and Scripting 3 03-01-2007 12:01 PM
How to do parallel processing?? zing UNIX for Dummies Questions & Answers 1 06-23-2003 12:47 PM

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 09-04-2007
manas_ranjan's Avatar
manas_ranjan manas_ranjan is offline
Registered User
  
 

Join Date: Jul 2007
Location: Amsterdam
Posts: 177
how to achieve following parallel processing thru unix

hey......
i hav the follwing scripts needs to run parallel, so i made it as follows,
$HPath/start_script.sh 20 &
$HPath/start_script.sh 03 &
$HPath/start_script.sh 01 &
$HPath/start_script.sh 12 &


then once all these above got completed successfully i have to run

$HPath/Chklog.sh $Country_Code

Problem is , since above 4 jobs are running in BG , my checklog will initiate as soon as 4 jobs ran in BG.....but i want to make pause the checklog unless until all the BG jobs completed successfully, how to achieve this....
  #2 (permalink)  
Old 09-04-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
use the wait command. Also, check this thread

Last edited by Yogesh Sawant; 09-04-2007 at 07:27 AM.. Reason: added the link
  #3 (permalink)  
Old 09-04-2007
manas_ranjan's Avatar
manas_ranjan manas_ranjan is offline
Registered User
  
 

Join Date: Jul 2007
Location: Amsterdam
Posts: 177
Hey Yogesh,

So really wait will "wait" for those 4 BG processes to complete , then will invoke check log.......
  #4 (permalink)  
Old 09-04-2007
manas_ranjan's Avatar
manas_ranjan manas_ranjan is offline
Registered User
  
 

Join Date: Jul 2007
Location: Amsterdam
Posts: 177
So if i will change the way of calling the script as follows, will my objective met,

$HPath/start_script.sh 20 &
$HPath/start_script.sh 03 &
$HPath/start_script.sh 01 &
$HPath/start_script.sh 12 &

wait

$HPath/Chklog.sh $Country_Code


kindly confirm .....
Closed Thread

Bookmarks

Tags
wait

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 12:03 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