Web Compiler Command Blocking

Asked 2 years ago, Updated 2 years ago, 123 views

I would like to produce a web compiler after making an editor based on the answer I got from the previous question. After making it a batch file of compile commands on the server, save the code that came over as a file with an editor, and if there is an error message after compiling, display a return message If the compilation succeeds, you want to run the program and return the execution result value.

What are the ways to prevent abnormal behavior, such as system commands and infinite loops?

And if the desired output is not available for the execution result of the problem-solving, I want it to come out as failed, but do I have to parse the string myself? Um...

Come to think of it, if you compile it in the same way as above, Input function is not available... Hmm... How should I compile and show the execution results?

web compiler code

2022-09-21 22:55

1 Answers

In this case, the docker is a good way to turn your code from an isolated container. The behavior of the code is bound to the container, and how to limit resource usage exists.

See the How did Startlink make ./coding.sh slide.


2022-09-21 22:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.