handle network, run code as different user than compilation

This commit is contained in:
Brian Seymour 2018-10-22 19:14:17 -05:00
parent c94c7577fb
commit 7891b676eb
17 changed files with 30 additions and 24 deletions

View file

@ -3,4 +3,4 @@ cp code.code interim.go
file="interim.go"
GOROOT=/usr/lib/go timeout -s KILL 10 go build $file
file=${file%%.*}
timeout -s KILL 3 bash -c "cat args.args | xargs -d '\n' ./$file"
timeout -s KILL 3 runuser ubuntu -c "cat args.args | xargs -d '\n' ./$file"