1
0
Fork 0
mirror of https://github.com/engineer-man/piston.git synced 2025-09-18 18:00:04 +02:00
piston/lxc/executors/haskell

7 lines
193 B
Text
Executable file

cd /tmp/$2
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"