3 ms·
Regarding sleep that would be the role of e.g. systemd (or whatever you have on your system) and you'd have to write a service unit handling that (although I'm
by hiq 6y ago
Regarding sleep that would be the role of e.g. systemd (or whatever you have on your system) and you'd have to write a service unit handling that (although I'm not sure what you'd want exactly, if you have a program running when you put your computer to sleep, it'll still be running once it resumes, so not much to do).
Regarding schedule that could be part of the service, but a simple cronjob can also do the trick depending on what you want exactly.