News for hackers. Stuff that matters.
Re:Systemd.timer, an Alternative to Cron by marbu on Thursday December 08, 2022 @03:46PM (#33913122)
This split between service file (what is going to happen exactly) and a timer file (when it's going to happen) is ok for complex use cases, but it really feels a bit silly when a single cron line would do the trick instead.
Re:Systemd.timer, an Alternative to Cron by ilyt on Thursday December 08, 2022 @04:48PM (#33914030)
there is cmdline shortcut for one-off ones at the very least

    systemd-run --user --unit=timer-name --on-active=60 /exec/path
will run it in 60 seconds
Re:Systemd.timer, an Alternative to Cron by marbu on Friday December 09, 2022 @06:26AM (#33920154)
Nice, thanks for sharing this.
Re:Systemd.timer, an Alternative to Cron by hagbarddenstore on Thursday December 08, 2022 @04:35PM (#33913815)
You can still use cron if you want...
Re:Systemd.timer, an Alternative to Cron by marbu on Friday December 09, 2022 @06:53AM (#33920288)
Also the split allows easier debugging: one can define and run the service, check that it works, and then define a timer and test that separately.