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

4 lines
168 B
Text
Executable file

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