laziness, impatience, and hubris | |
PerlMonks |
Re^2: Continuous or timed?by Bod (Parson) |
on Dec 11, 2020 at 16:36 UTC ( [id://11125012]=note: print w/replies, xml ) | Need Help?? |
Create a cron job running around midnight or high noon, have that job calculate sunrise and sunset and submit them to the cron system. That seems a very sensible approach and certainly one I would adopt if higher accuracy were needed. I like that is gets kicked off daily so is immune to the script failing.
In Section
Seekers of Perl Wisdom
|
|