piston/lxc/executors/nasm64
2021-01-16 18:41:41 +01:00

5 lines
206 B
Text
Executable file

runuser runner$1 -c "\
cd /tmp/$2 ; \
nasm -f elf64 -o binary.o code.code ; \
ld -m elf_x86_64 binary.o -o binary ; \
cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary < stdin.stdin"