mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 21:16:29 +02:00
handle network, run code as different user than compilation
This commit is contained in:
parent
c94c7577fb
commit
7891b676eb
17 changed files with 30 additions and 24 deletions
|
@ -1,3 +1,3 @@
|
|||
cd /tmp/$1
|
||||
timeout -s KILL 10 gcc -o binary -x c code.code
|
||||
timeout -s KILL 3 bash -c "cat args.args | xargs -d '\n' ./binary"
|
||||
timeout -s KILL 3 runuser ubuntu -c "cat args.args | xargs -d '\n' ./binary"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue