Bash Script for execute (and log) cron task for Moodle