jeudi 27 avril 2017

How to loop over a certain time?

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