at, alternative Linux à Task Scheduler
Mis à jour le
Notre avis
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.
- Licence
- GPL-2.0-or-later
- Prix
- Gratuit
- Dernière version
- 3.2.5
- Note
- —
Ce qui fonctionne pareil
- 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
Ce qui change
- 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
Ouvrir vos fichiers Task Scheduler
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.
Passer de Task Scheduler à at, étape par étape
- 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.
Fonctionnalités clés de at
- Planifier des commandes ponctuelles à exécuter à un moment précis
- Prend en charge les spécifications de temps relatives comme 'now + 1 hour'
- Peut exécuter des scripts shell ou des commandes directes
- Les tâches sont stockées dans une file d'attente gérée par le démon atd
- La sortie peut être envoyée par e-mail à l'utilisateur ou redirigée vers un fichier
- Fonctionne avec des dates et des heures absolues
- Léger avec une utilisation minimale des ressources système
- Préinstallé sur la plupart des distributions Linux standard
Installer at sous Linux
sudo apt install atsudo apt install atsudo dnf install atsudo pacman -S atsudo zypper install atQuestions fréquentes
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.