Hi, all
The online judge plugin has a big upgrade in svn. It is about judging submissions immediately after uploading. I've tested it in my product site for one day. It works smoothly.
If you'd like to have a try, use
this file to overwrite mod/assignment/type/onlinejudge/assignment.class.php. If your moodle cron script is invoked by php-cli (in crontab, run with something like "/usr/bin/php MOODLE_PATH/admin/cron.php"), the above overwriting is all you need to do. Just wait for the cron to run once and all will be done. If your run moodle cron script through http, you need to run the following command in command line manually:
php MOODLE_PATH/admin/cron.php
The new version creates a daemon by forking the cron script to judge submissions immediately. To check whether the daemon is running, use "ps -FC php". If you see something like the following lines, it works.
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
********** 19911 1 0 11194 23240 1 10:25 ? 00:00:45 /usr/bin/php /****************/moodle/admin/cron.php
If you never run cron through php-cli, the new version file will work as the old versions.
Another news about supporting more programming languages and Windows. I found a wonderful site:
http://www.ideone.com . It provides a free web service which can compile, run uploaded code and return the results. It supports more than 40 kinds of languages. We are adding the feature that judge submissions through
ideone.com. I believe this feature can make things easier and safer. Moreover, it should work well in Windows server.
--
You received this message because you are subscribed to the Google Groups "Sunner Moodle Plugins" group.
To post to this group, send email to
sunner-moo...@googlegroups.com.
To unsubscribe from this group, send email to
sunner-moodle-pl...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sunner-moodle-plugins?hl=en.