#cron-jobs
3 one-liners with this tag.
All one-liners tagged cron-jobs
Add a cron job that logs its output
$(crontab -l 2>/dev/null; echo "*/15 * * * * /usr/bin/php /var/www/vhosts/example.com/httpdocs/wp-cron.php >> /var/www/vhosts/example.com/logs/wp-cron.log 2>&1") | crontab -
Show system-wide cron jobs in /etc/crontab and /etc/cron.d
$grep -vE '^\s*(#|$)' /etc/crontab /etc/cron.d/*
Show the crontabs of all users at once
#for u in $(cut -d: -f1 /etc/passwd); do crontab -l -u "$u" 2>/dev/null | grep -vE '^(#|$)' | sed "s/^/$u: /"; done