piston/lxc/executors/haskell

5 lines
191 B
Plaintext
Raw Normal View History

2020-10-17 05:57:45 +02:00
cd /tmp/$2
2020-10-17 21:14:19 +02:00
mv code.code code.hs
2020-10-17 21:18:57 +02:00
timeout -s KILL 10 ghc -dynamic -o binary code.hs > /dev/null 2>&1
2020-10-17 05:57:45 +02:00
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"