1. When to use it
Use it when you need to delay a command by a few minutes or run it only when load drops.
at | batch | atq | atd | one-shot jobs
2. Base setup
chmod +x /usr/local/sbin/rotate-report.sh
echo "/usr/local/sbin/rotate-report.sh" | at now + 30 minutes
echo "updatedb" | batch
Adjust host names, IPs, interfaces, paths, and versions to the real system before making the change persistent.
3. Quick verification
atq
at -c 1 | sed -n '1,20p'
ps aux | grep '[a]td'
Confirm that the output matches the expected state before considering the intervention complete.
4. Operational notes
Make sure rc.atd is running, otherwise jobs stay queued and never execute.
Quick checklist
[ ] Steps completed\n[ ] Config updated\n[ ] Tests executed\n[ ] Rollback ready\n[ ] Logs checked