in reply to Signal to a sleeping Perl program
I had the opposite idea of davido's: if you loop with a sleep, you could extend the loop condition like this:
or, in appropriate placeswhile (! -e '/predefined/location/time_is_up') { do {'your thing'}; sleep 900; }
This would cause the script to end if you create that file.exit if -e '/predefined/location/time_is_up';
In Section
Seekers of Perl Wisdom