The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-19-2008
ukatru ukatru is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 38
Execute All Commands in A contrl File

Hi ,

I have a situation i need to write a while loop until the end of control file.In the control file i have a 5 lines which contains commands.how can i execute all with out waiting for the first one to complete.

Ex ControlFile:

ScripitName Test
ScriptName Test1
ScriptName Test2

while read -r inline
do
$inline # inline = ScriptName Test
done < ControlFile

I need to complete the whole loop with out waiting until the execution of the previous command.

Appreciate your help.