Hi,
We are running the latest moodle 2.8.5+
As per https://docs.moodle.org/28/en/Administration_via_command_line#Scheduled_tasks
I am trying to run php scheduledtasks.php --list
firstly i received Command line scripts must define CLI_SCRIPT before requiring config.php
fixed that by adding define('CLI_SCRIPT', true); into the scheduled tasks file
now i receive !!! Unsupported redirect detected, script execution terminated !!!
has anyone else come across this?
thanks