I am creating a script that should wait until a certain file (e.g. stop.dat
) appears or after certain time (e.g. 500 Seconds) has passed.
I know how to wait until the file appears:
while [ ! -f ./stop.dat ]; do
sleep 30
done
How can I add the other statement in my while loop?
Aucun commentaire:
Enregistrer un commentaire