mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
piston improvements. adds version endpoint, new execution output, awk language support, and installs all dependencies directly when possible and avoids apt unless not possible
This commit is contained in:
parent
f6af99bbee
commit
8fcdec7275
7 changed files with 143 additions and 85 deletions
4
lxc/executors/awk
Executable file
4
lxc/executors/awk
Executable file
|
@ -0,0 +1,4 @@
|
|||
cd /tmp/$2
|
||||
timeout -s KILL 2 sed "/___code___/Q" code.code > code.stdin
|
||||
timeout -s KILL 2 sed "1,/___code___/d" code.code > code.awk
|
||||
runuser runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 awk -f code.awk < code.stdin"
|
Loading…
Add table
Add a link
Reference in a new issue