On 3/9/06, Roy Sin <[EMAIL PROTECTED]> wrote: > Any idea on how to make the script wait until the report is > generated and validated before proceeding to the next def.
def sleep_for_file
Find.find("C:/ReportDir") do |f|
if f =~ /txt/
#DO STUFF
break
else
sleep 2
end #if
end #do
end #def
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
