General developer forum

scheduling cron job throw error

Picture of Syed Ali
scheduling cron job throw error

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: -
Picture of Richard Oelmann
Re: scheduling cron job throw error
Core developersParticularly helpful MoodlersPlugin developersTesters

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

Try scheduling it with a cron task instead?

Average of ratings: -