while (! -e '/predefined/location/time_is_up') { do {'your thing'}; sleep 900; }