1
0
Fork 0
mirror of https://github.com/engineer-man/piston.git synced 2025-05-13 07:06:26 +02:00
piston/lxc/executors/awk
mattx 4edbe1008d
Add awk support
Basic awk support
2020-02-15 17:42:38 +01:00

5 lines
265 B
Text

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
timeout -s KILL 3 awk -f code.awk < code.stdin
runuser -l runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 awk -f code.awk < code.stdin"