piston/lxc/executors/rust
2021-01-16 18:41:41 +01:00

5 lines
155 B
Text
Executable file

cd /tmp/$2
rustc -o binary code.code
runuser runner$1 -c "\
cd /tmp/$2 ; \
cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary < stdin.stdin"