Interview Prep/Linux/Scheduling, automation and scripting

A one-off data fix must run at 9 PM tonight, just once. How do you schedule it?

BeginnerScenarioScheduling, automation and scripting
Answer

Situation read → One-shot scheduling.

What I'd do →

echo "/usr/local/bin/fix-data.sh >> /tmp/fix.log 2>&1" | at 21:00
atq
at -c <job>      # see the full job
atrm <job>       # cancel

Or with systemd: systemd-run --on-calendar='2026-11-09 21:00' /usr/local/bin/fix-data.sh.

Why → No need to add then remember to remove a cron line.

Interview tip → atd must be running; check systemctl status atd.

All Linux questions Roadmap: Linux

More on Scheduling, automation and scripting