Mit folgender Zeile kann Du alle CronJabs anzeigen (aufListen) lassen
crontab -l
Editieren geht dann mit dem Parameter E
crontab -e
Die Zeile selbst um eine minütliche Ausführung zu machen…
* * * * * curl -I "https://dev.cloud-meister.ch/wp-cron.php?doing_wp_cron" > /tmp/wpcron.log 2>&1
dev.cloud-meister.ch sollte natürlich Deine Domain sein
Die Log-Datei kannst Du dan wie folgt anzeigen lassen
cat /tmp/wpcron.log
In der Log-Datei sollte das sowas stehen wie folgt. Wobei HTTP/2 200 wichtig ist.
Also der http-Status Code 200.
uid288491@od-c722fe:~$ cat /tmp/wpcron.log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
HTTP/2 200
date: Thu, 14 Aug 2025 21:51:01 GMT
server: Apache
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: no-cache, must-revalidate, max-age=0
strict-transport-security: max-age=16000000
vary: Accept-Encoding
content-type: text/html; charset=UTF-8
PS: In Deiner wp-config.php sollte dann natürlich die WordPress eigene Aufrufe deaktiviert werden!
define('DISABLE_WP_CRON', true);
Als Beispiel:
MAILTO=cron.admin@cloudmeister.ch
*/5 * * * * /bin/bash -c '/usr/bin/curl --fail --max-time 30 -s https://cloud-meister.ch/wp-cron.php?doing_wp_cron > /dev/null 2>&1 || echo "CronJob failed: $(date)" | /usr/bin/mail -s "CronJob Error on $(hostname)" cron.david@cloudmeister.ch; echo "$(date) – Cron ausgeführt" >> ~/cmx/logs/cron.log'