mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 21:16:29 +02:00
Add awk support
Basic awk support
This commit is contained in:
parent
7bc9b5b63a
commit
4edbe1008d
1 changed files with 5 additions and 0 deletions
5
lxc/executors/awk
Normal file
5
lxc/executors/awk
Normal file
|
@ -0,0 +1,5 @@
|
|||
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"
|
Loading…
Add table
Add a link
Reference in a new issue