Bash espere até que exista arquivo
until [ -f /tmp/examplefile.txt ]
do
sleep 5
done
echo "File found"
exit
Gifted Gull
until [ -f /tmp/examplefile.txt ]
do
sleep 5
done
echo "File found"
exit