Greetings Dear Moodlers,
Me again. This time, I have a problem with my cron command. I am running moodle 2.7 on a Ubuntu linux server. On my crontab -e file I have setup the line:
*/1 * * * * /usr/bin/php /path/to/moodle/admin/cli/cron.php >/dev/null
as suggested in the cron website, however I receive e-mails every time the cron job runs. (every minute)
Looking in other websites I found the line:
*/1 * * * * /usr/bin/php /path/to/moodle/admin/cli/cron.php -o /dev/null -silent
but when I try that I get an error that states: Unrecognised options: -o /dev/null -silent Please use --help option.
If I use the command:
*/1 * * * * /usr/bin/php /path/to/moodle/admin/cli/cron.php
Then everything runs fine except me and pretty much everyone in the system get an e-mail from my moodle admin account... Any thoughts? what switch am I missing to run this transaction without spamming everyone and myself?
Kind thanks!
DM