R
R
RunFMe2015-03-24 17:59:46
Node.js
RunFMe, 2015-03-24 17:59:46

How to run programs in the sandbox and get their results on the site?

How can I run the program (let's say in Pascal), and then get what it outputs. Preferably something that works with node js. For example, this is on codeforces. Is there ready-made software for this (sandbox) or do you need a bicycle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexLIn, 2015-03-24
@RunFMe

Docker
https://docs.docker.com/userguide/dockerizing/
to kill the container
$ sudo docker run ubuntu:14.04 /bin/echo 'Hello world'
Hello world
to kill the container after the task is completed, you need to add rm to the arguments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question