epicbox icon indicating copy to clipboard operation
epicbox copied to clipboard

Run multiple files

Open mama00 opened this issue 4 years ago • 2 comments

Is there a way to run multiple files in one docker?

mama00 avatar Feb 24 '21 12:02 mama00

Do you mean to run multiple commands/processes with one epicbox.run? I guess you can try to pass a command like "/bin/command1 arg1 arg2 && command2 argX argY". Eventually the command that is executed in a container is wrapped into /bin/sh -c: https://github.com/StepicOrg/epicbox/blob/master/epicbox/sandboxes.py#L68

psviderski avatar Feb 25 '21 07:02 psviderski

Cant I use the stdin parameter to pass the input to each of the command/process? And also how costly would it be to run a compiler online with epicbox? I mean you have a thousand of request to compile untrusted code. For each of theses requests a container is created

mama00 avatar Feb 25 '21 11:02 mama00