This is my first post so be gentle
What i want to achieve is something like codepad/ideone to run an online open source community, a lot is already programmed but i just want to include this functionality.
I want users to post sourcecode, run it through the correct compiler/interpreter, add the STDIN with the script, compile, run, and then show the response.
Of course, there's some theoretical problems but all sites solve this with constraings:
For example:
Compilation time is very limited, from 5 to 15 seconds.
Program size is limited to 32-64kb
Running time is limited to 20 seconds.
ETC
Also they can only read from
STDIN and write to
STDOUT. In my case database fields.
How can i set up a sandbox environment or some sort of slave compiler to to do this stuff?
I'm managing everything with perl and a mysql database, and possibly (like you could live without those) shell scripts.
Thanks in advance.