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 -->
  #4 (permalink)  
Old 02-09-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,183
One way is to sit in a sleep loop.

Code:
while true
do
        if [ -f A.txt ]
        then
                sleep 10
        else
                break
        fi
done
b.sh

avronius is right. Unless the file is a simple flag created with something like "touch" it could be not ready for processing.