0

There are a few websites that allow you to code in a online editor, and then it compiles on a server and displays the output.

I am guessing they are using docker and/or lxc to create a safe environment and isolate it for each session.

How do they display exactly what the terminal is displaying like e.g. the compile errors or the running output?

3
  • A command line compiler will output to stdout/err ... Commented Jan 4, 2016 at 15:11
  • @AlexK.ok, so how do you redirect or save that output to display on a webpage? Commented Jan 4, 2016 at 15:26
  • Depends on your language, E.g. proc_open in PHP - stackoverflow.com/questions/5631600/… Commented Jan 4, 2016 at 15:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.