Find out which cron job runs a command
which cron job starts this script | what is calling wp-cron.php | find cron job behind a process | search cron jobs for a string | grep | cron | searchgrep -rn "wp-cron.php" /etc/crontab /etc/cron.d /etc/cron.hourly /etc/cron.daily /etc/cron.weekly /etc/cron.monthly /var/spool/cron/crontabs 2>/dev/nullSearches recursively in all places where cron jobs can live on Debian and prints file name, line number and match. In /var/spool/cron/crontabs/, the file name is the user. Useful when an unknown process keeps showing up regularly and you are looking for its trigger.
Note: systemd timers are not covered here. Their units can be found with grep -rl in the /etc/systemd/system directory.
Also searched as
- which cron job starts this script
- what is calling wp-cron.php
- find cron job behind a process
- search cron jobs for a string