piston/lxc/executors/haskell

8 lines
193 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
runuser runner$1 -c "\
cd /tmp/$2 ; \
ghc -dynamic -o binary code.hs > /dev/null 2>&1 ; \
cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"