I'd like to create an auto-testing/grading script for students on a Linux system such that:
- Any student user can initiate the script at any time.
- A separate script (with root privileges) copies student code to a non-student-accessible file space, using non-student-accessible unit tests, etc.
- The user receives limited feedback in the form of a text file generated by the grading script.
In short, I'm looking to create something similar to programming contest submission systems, but allowing richer feedback without revealing all teacher unit testing.
I would imagine that a spooling behavior between one initiating script and one root-permission cron script might be in order. Are there any models/examples of how one might best structure communication between a user-initiated script and a separate root-initiated script for such purposes?