Skip to main content

All Questions

0 votes
3 answers
150 views

What is the easiest way to run a program from time X to time Y?

There is a certain potentially failing process that I want to run until it succeeds, during the night time, say, from 23:00 to 7:00, but not later. A possible solution would be to: Add a cron job for ...
Vladimir Nikishkin's user avatar
0 votes
0 answers
87 views

What is the most efficient way to run a task every X hours of runtime, accumulated over all power-ons?

Let us assume that I have a machine which wakes up at 7:00, does some work, usually for 15 minutes, but sometimes for days (e.g., experiment supervision), and after the works is done, it powers ...
Vladimir Nikishkin's user avatar
0 votes
1 answer
267 views

systemd timer on boot but not too often

Would it be possible to create a timer that will run a service on a boot, but not more often than once a week? In my case it would be beneficial to run a TRIM (fstrim) for SSD disk on a boot, but once ...
Dawid Grzesiak's user avatar
1 vote
0 answers
739 views

Systemd transient timer created with systemd-run is not shown in listed units

Some time ago, I created a systemd timer using the command: systemd-run --on-calendar='*-*-01 12:00:00' --description='Update root hints for unbound' --property='After=network.target' --timer-...
smac89's user avatar
  • 1,483
0 votes
2 answers
449 views

How to schedule a job as non-root user in CoreOS

I have a script on my CoreOS machine which look like below, that I am using to ssh to multiple nodes from a list and get required details host_det=$(ssh -Ao StrictHostKeyChecking=no -o BatchMode=yes -...
Siraj's user avatar
  • 1