Help with how to run multiple script with concurrent processes runs sequentially.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help with how to run multiple script with concurrent processes runs sequentially.
# 1  
Old 03-21-2014
Help with how to run multiple script with concurrent processes runs sequentially.

Hi,

The problem detail is follows

I have three individual scripts .
SCRIPT A
Code:
sh -x sqoop_channels_nc_daily_01.sh  & sh -x sqoop_channels_nc_daily_02.sh  & sh -x sqoop_channels_nc_daily_03.sh

SCRIPT B
Code:
sh -x sqoop_contacts_nc_daily_01.sh  & sh -x sqoop_contacts_nc_daily_02.sh & sh -x sqoop_contacts_nc_daily_03.sh  &

SCRIPT C
Code:
sh -x sqoop_tags_nc_01.sh  & sh -x sqoop_tags_nc_02.sh  & sh -x sqoop_tags_nc_03.sh  &

Now I want to run SCRIPT A , SCRIPT B SCRIPT C sequentially means once SCRIPT A is completed then only SCRIPT B gets executed then SCRIPT C

but when I am executing
Code:
SCRIPT A;
SCRIPT B;
SCRIPT C;

SCRIPT B get executed as soon as SCRIPT A gets executed same goes with SCRIPT C. Can you please help me with this.

Thanks,
Himani


Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. Thanks

Last edited by vbe; 03-21-2014 at 12:50 PM..
# 2  
Old 03-21-2014
The shell will wait if they do, but can't stop a script from backgrounding itself. What are the contents of these scripts?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Trying to run a script that runs another script

So I have a bash script called count.sh This is what is inside it- if ; then echo "Error" else echo "Correct!" I want to put this script into another script that I'll call parent.sh. However, the issue I'm having is that this count script requires the user to input parameters... (2 Replies)
Discussion started by: Eric1
2 Replies

2. Shell Programming and Scripting

Need to run a bash script that logs on as a non-root user and runs script as root

So I have a script that runs as a non-root user, lets say the username is 'xymon' . This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root. in short: user xymon on system A needs to run a file as root user and have... (2 Replies)
Discussion started by: damang111
2 Replies

3. Shell Programming and Scripting

Run multiple python programs sequentially.

I HAVE WRITTEN NINE PYTHON CODES TO PERFORM A TASK ........ I WISH TO RUN THEM SEQUENTIALLY. eg. code1__code2 >>>>>>>>code9.py TO GET DESIRED OUTPUT. PLS HELP ME WRITTING SHELL SCRIPT .. I HAVE TO DISTRIBUTE THESE CODE FOR BEING USED BY OTHERS. (2 Replies)
Discussion started by: upvan111
2 Replies

4. Shell Programming and Scripting

Any scenario where a script will not run sequentially when called?

Can a script that calls another script exit and end while the called script is still running? If so, how can this be made to happen? (1 Reply)
Discussion started by: Harleyrci
1 Replies

5. UNIX for Dummies Questions & Answers

Run Processes Sequentially Using Process ID (PID)

Hi, I'm a newbie when it comes to using UNIX, and I'm hoping someone here can help me out. I have a set of processes that I want to run sequentially: process1.py process2.py process3.py I want to know I can run these sequentially using their process IDs (PIDs). Ideally, I want to... (2 Replies)
Discussion started by: shelata
2 Replies

6. Shell Programming and Scripting

sequentially run the shell scripts.

Hi All, I have a master script , which would run 4 scripts in sequence. When the first script gets executed , I need to check if a particular process has been completed. If it is completed , only then proceed with the second script. This same rule applies to script3 and script4. Can someone... (4 Replies)
Discussion started by: nua7
4 Replies

7. Shell Programming and Scripting

concurrent processes

We have a very large text file..contains almost 100K lines. We want to process this file to generate another text file as per our data requirement. As for now the parsing of data takes 20-25 mins each , for 100K lines. the current script uses : While Read Each Line do parsing.. Done ... (6 Replies)
Discussion started by: Amruta Pitkar
6 Replies

8. UNIX for Advanced & Expert Users

script to run different shells which run different processes

Hi, Would like to ask the experts if anyone knows how to run a script like this: dtterm -title shell1 run process1 on shell1 dtterm -title shell2 run process2 on shell2 cheers! p/s: sorry if i used the wrong forum, quite concussed after watching world cup for several nights; but I... (2 Replies)
Discussion started by: mochi
2 Replies

9. UNIX for Dummies Questions & Answers

concurrent terminal connections and processes

we've got solaris 5.6 installed in a ultra 5 box that serves as gateway server going to the main unix box. just like to find out how to determine the number of concurrent terminal connections and processes that the ultra 5 box can handle? and handling at present time? thanks in advance! (1 Reply)
Discussion started by: eddie_villarta
1 Replies

10. UNIX for Dummies Questions & Answers

Max number of concurrent processes

OS - Sun OS7 What sources can I go to to figure out what is the maximun number of processes for OS7 with 2GB of memory. I believe it is 64K processes, but this number reflects resources being swaped. Any help is appreciated SmartJuniorUnix (1 Reply)
Discussion started by: SmartJuniorUnix
1 Replies
Login or Register to Ask a Question