piston/lxc/executors/haskell

8 lines
207 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 ; \
2021-01-16 18:41:41 +01:00
cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary < stdin.stdin"