Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash wait until file exists

until [ -f /tmp/examplefile.txt ]
do
     sleep 5
done
echo "File found"
exit
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #bash #wait #file #exists
ADD COMMENT
Topic
Name
4+4 =