The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-09-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,342
Does func2 call another script?
In that case you can run the script in the background and use the wait command to wait until the background job is complete.

BTW the use of cat is redundant, to loop through a file you can do something like:


Code:
while read var1 var2
do 
  func1 $var1 $var2
done < file1

Regards