CRON no longer working

Re: CRON no longer working

by Colin McQueen -
Number of replies: 0
Thanks for this. I had seen the documentation but was wondering if the wget just needed a local filename to work with. I ended up getting very helpful support from my hosting supplier who informed me they had actually stopped any use of wget now. The lynx command is also denied.

The hosting support guys recommended a similar solution to one of those in docs.moodle.org i.e.

php -f /home/username/public_html/moodle/admin/cron.php > /dev/null

which works. At least it seems to. Nb using -f is needed because I am passing a filename not a web address.

However I now get emails with

"doesn't appear to be a valid Zend extension"

which looks like it's a warning not an error so cron still completes the cron job (I think)

I have tried using --quiet and then I get the output from the cron job with that zend bit first. I thought this would suppress all errors and warnings?

I was wondering why the > /dev/null doesn't prevent me receiving the emails but apparently it's only needed if the output isn't written to an email so I guess I can lose that bit.

I only want to get emails if the cron job fails. Anyone have a definitive answer on how i might get this?