mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-24 22:16:26 +02:00
7 lines
193 B
Text
Executable file
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"
|