at als Linux-Alternative zu Task Scheduler
Aktualisiert am
Unser Fazit
at can replace Windows Task Scheduler for the simplest use‑cases: running a command or script once at a specific date or after a relative delay. It works well for users who need occasional one‑off jobs and do not require recurring schedules, event‑driven triggers, or detailed logging. Power users who rely on periodic tasks, system‑event hooks, or rich execution reports will quickly outgrow at and should look at cron or systemd timers instead.
- Lizenz
- GPL-2.0-or-later
- Preis
- Kostenlos
- Aktuelle Version
- 3.2.5
- Bewertung
- —
Was gleich funktioniert
- Both run commands or scripts at a defined time
- Both can be used without a graphical interface
- Both can redirect output to files or mail
- Both are included in most Linux distributions
Was anders ist
- at only supports one‑time jobs; no built‑in recurrence
- no native support for event‑driven triggers (e.g., on boot, on network change)
- limited logging; does not provide a task history UI
- cannot import or export Windows .xml/.job files
- no GUI; all configuration is command‑line only
Ihre Task Scheduler-Dateien öffnen
There is no documented way to import Windows Task Scheduler files (.xml or .job) into at. The formats are unrelated, so migration must be done manually by recreating the tasks on the Linux side.
Von Task Scheduler zu at wechseln – Schritt für Schritt
- Identify the one‑time tasks you need to keep.
- Translate the command line and timing into at syntax, e.g.,
echo "mycmd" | at 14:30 2026-11-01. - Create a shell script if the task requires multiple commands and schedule that script with at.
- Test the scheduled job with
at -land check output in the mail file or redirected log. - Remove the original Windows task after confirming the Linux job runs correctly.
Wichtige Funktionen von at
- Planen von einmaligen Befehlen zu einem bestimmten Zeitpunkt
- Unterstützt relative Zeitangaben wie 'now + 1 hour'
- Kann Shell-Skripte oder direkte Befehle ausführen
- Aufgaben werden in einer Warteschlange gespeichert, die vom Daemon atd verwaltet wird
- Ausgabe kann per E-Mail an den Benutzer gesendet oder in eine Datei umgeleitet werden
- Funktioniert mit absoluten Datums- und Zeitangaben
- Leichtgewichtig mit minimalem Systemressourcenverbrauch
- Vorgeinstalliert auf den meisten Standard-Linux-Distributionen
at unter Linux installieren
sudo apt install atsudo apt install atsudo dnf install atsudo pacman -S atsudo zypper install atHäufige Fragen
Can at run tasks when no user is logged in?
Yes, atd runs as a system service, so jobs execute regardless of user login.
How do I see scheduled at jobs?
Use atq (or at -l) to list pending jobs; atrm <jobid> removes them.
Is at suitable for recurring backups?
No, for recurring jobs use cron or systemd timers; at only handles one‑off executions.