Move runuser to execute

This commit is contained in:
Vrganj 2021-01-17 15:44:40 +00:00
parent 14565b16e4
commit 9851352f87
30 changed files with 76 additions and 132 deletions

View file

@ -1,8 +1,6 @@
#!/bin/bash
runuser runner$1 -c "\
cd /tmp/$2
cp code.code code.hs
ghc -dynamic -o binary code.hs > /dev/null 2>&1
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin
"
cd /tmp/$2
cp code.code code.hs
ghc -dynamic -o binary code.hs > /dev/null 2>&1
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin