Pipe cron output to syslog
Tag stdout+stderr into journald/syslog instead of mailing root
*/5 * * * * /opt/job.sh 2>&1 | /usr/bin/logger -t job
- tool
- cron8 commands
More cron commands
-
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
-
at now + 1 hour <<< 'systemctl restart nginx'Schedule a single deferred command; inspect queue with atq, cancel with atrm
-
batch <<< '/opt/heavy-reindex.sh'Run only when load avg drops below 1.5; note: atd must be running