piston/lxc/executors/nasm64

6 lines
206 B
Plaintext
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"