Crontab / at/shaare/pyrX4g
Crontab Basics
crontab -e→ edit crontabcrontab -l→ list crontab entriescrontab -r→ remove crontab entriessystemctl status crond→ check crond service status
AT: One-time Scheduled Tasks
- Used to schedule jobs only once.
Scheduling Examples:
at HH:MM PM→ schedule a job interactively-
at 11:23AM 12/24/25- Enter job (e.g.,
echo "test") and pressCtrl + Dto finish
- Enter job (e.g.,
at 2:45PM 01/30/25at 4PM + 4 daysat now + 5 hoursat 8:00AM Sunat 10:00AM next month
Managing AT Jobs
atq→ list the scheduled at jobsatrm #→ remove a specific at job (use number fromatq)systemctl status atd→ check atd daemon status
(19)