update readme, set c to run everything under a runner

This commit is contained in:
Brian Seymour 2021-01-13 01:36:10 -06:00
parent 9c985a1e5b
commit e6e1c093d6
2 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,4 @@
cd /tmp/$2
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"
runuser runner$1 -c "\
cd /tmp/$2 ; \
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code \
cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"