From: Ruben Fonseca Date: 2008-06-03T00:12:55+09:00 Subject: Safe sandbox for running untrusted code Hello @all! I'm sorry if this has been answered before, but I'm looking for an expert voice for this question. I would need if Ruby have a safe mechanism of running unsafe code on a sandbox environment. Image this situation: I lunch a contest "solve this problem in Ruby". The users submit their code, and my system runs the code on an sandbox, with memory and time constraints, and verifies if the output meets the required result. Basicly, I need a way to run Ruby code that reads from STDIN, writes to STDOUT, and I need to be sure it doesn't run more than "x" seconds and don't eat all my memory. It this possible with the current VM (MRI 1.8)? Thank you for your support. -- Posted via http://www.ruby-forum.com/.