Thanks for that, I've implemented your suggestion. With a slight modification, a basic cron job can be implemented on one line (I've done it as a jevents file in /etc/cron.d rather than using crontab, but it could be done with crontab):
*/15 * * * * root /usr/bin/cronic /usr/bin/curl -s -k -f -w "\%{http_code}" "https://kms.bsr.cloud/index.php?option=com_jevents&icsid=4&task=icals.reload"
If all is well, there is no output from this. But if the anon refresh is turned off, cron sends an email saying:
Cronic detected failure or error output for the command:
/usr/bin/curl -s -k -f -w %{http_code} https://www.kirkbymoorsidetowncouncil.gov.uk/index.php?option=com_jevents&icsid=4&task=icals.reload
RESULT CODE: 22
ERROR OUTPUT:
STANDARD OUTPUT:
403
Obviously, with a simple bash script, this could be made more sophisticated, the 403 tested and an explanatory message given. This approach also ensures that any error does get reported, rather than simply sending everything to /dev/null which will hide any problems that may arise.
BTW the notifications of new messages from this forum have invalid DKIM, which could affect deliverability.