systemd has timers with lots of useful ways to input dates or times. I'm writing a long running data processing script. Is there any command to sleep until a specific systemd time definition occurs? e.g. systemd-timer-sleep --until-calendar="03:00"
, a commmand which would block until the next 3:00am.
Yes, I know this means my script might run for days, that's OK.
I'm sure I can do this with date
& sleep
& calculating the number of seconds until my desired datetime, but I want to know if there's (now) an easier way.