Scheduler
-
Cron — the task scheduler
Running tasks on a schedule: crontab syntax, classic cron and modern systemd timers.
6 mincrontab -ecrontab -lsystemctl list-timers -
systemd timers — scheduled jobs
A systemd timer is a .timer unit that starts the service of the same name on a schedule; its output goes to the journal.
11 minsystemctl list-timerssystemctl enablesystemctl start -
at — a one-time scheduled job
Run a command once at a given time — unlike cron's recurring schedule.
4 minechoat nowat -f -
flock — preventing a second run
flock holds a file lock while a command runs, so a second copy of the script waits for it or exits at once.
9 minflock -nflock -wflock