scheduling cron job throw error

scheduling cron job throw error

by Syed Ali -
Number of replies: 1

So I customized moodle code and ran it in command line .

CLI_SCRIPT flag is true in my script. there is no error when running it in command line but when I schedule it in webmin and tried to run. It gave following error.

Command line scripts can not be executed from the web interface
Any help will be appreciated.
Average of ratings: -
In reply to Syed Ali

Re: scheduling cron job throw error

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Perhaps because webmin is a web interface and is running it as such?

Try scheduling it with a cron task instead?