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
CRON job to execute all scripts in a directory Annorax UNIX for Dummies Questions & Answers 6 06-22-2007 02:05 PM
How to execute scripts at logout? pcsaji Shell Programming and Scripting 1 03-27-2006 07:01 AM
How to find the File Age and wait for that... redlotus72 UNIX for Dummies Questions & Answers 3 06-01-2005 04:13 AM
wait in shell scripts Vinaya Shell Programming and Scripting 1 09-23-2004 09:29 AM
How can I execute TCL scripts in HP-UX wilsonchan1000 UNIX for Dummies Questions & Answers 3 03-24-2003 11:32 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-01-2006
halo98 halo98 is offline
Registered User
  
 

Join Date: May 2006
Posts: 2
Question Need to execute 2 scripts, wait, execute 2 more wait, till end of file



I need to execute a shell script to do the following:

cat a file
run two back ground processes using the first two values from the file
wait till those background processes finish
run two more background processes using the next two values from the file
wait till those background processes finish
etc till the end of the file.


Can anyone give me a way to do this? I cannot run all of the background processes at the same time, I can only do two at time.
 

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 03:22 AM.


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