The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
event or file wait scenario
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
event or file wait scenario
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
02-09-2009
methyl
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.
methyl
View Public Profile
Find all posts by methyl
Find methyl's past nominations received
Find methyl's present nominations given