mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
Fix stdin for most languages
This commit is contained in:
parent
b7ba08ccdf
commit
008d55643b
26 changed files with 172 additions and 103 deletions
|
@ -1,5 +1,8 @@
|
|||
runuser runner$1 -c "\
|
||||
cd /tmp/$2 ; \
|
||||
nasm -f elf32 -o binary.o code.code ; \
|
||||
ld -m elf_i386 binary.o -o binary ; \
|
||||
cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary < stdin.stdin"
|
||||
#!/bin/bash
|
||||
|
||||
runuser runner$1 -c "
|
||||
cd /tmp/$2
|
||||
nasm -f elf32 -o binary.o code.code
|
||||
ld -m elf_i386 binary.o -o binary
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin
|
||||
"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue