Dump another user's crontab
Inspect a service account's jobs as root; note: -u needs root or sudo
crontab -l -u <name> 2>/dev/null || echo 'no crontab'
- tool
- cron8 commands
More cron commands
-
( crontab -l 2>/dev/null; echo '@reboot /usr/local/bin/warmup.sh' ) | crontab -Append @reboot job idempotently; note: no networking guarantee at boot, use systemd for deps
-
*/5 * * * * /opt/job.sh 2>&1 | /usr/bin/logger -t jobTag stdout+stderr into journald/syslog instead of mailing root
-
crontab - <<'EOF' MAILTO=ops@example.com PATH=/usr/local/bin:/usr/bin:/bin 0 3 * * * backup.sh EOFCron PATH is minimal; set PATH/MAILTO at top or jobs fail silently
-
run-parts --test /etc/cron.dailyList which scripts would execute without running them; debugging cron.daily
-
systemd-run --on-calendar='*-*-* 03:00:00' --unit=backup /opt/backup.shmodern: transient OnCalendar timer with logs/retries; replaces a crontab line