Removed unnecessary argument from execute and executors

This commit is contained in:
ThreshMain 2021-02-05 16:50:57 +01:00
parent 8cc1f6c2b5
commit e1ef091570
No known key found for this signature in database
GPG Key ID: BFC472F2D308EDB3
35 changed files with 36 additions and 35 deletions

View File

@ -35,7 +35,7 @@ lxc-attach --clear-env -n piston -- \
# runner
timeout -s KILL 20 \
lxc-attach --clear-env -n piston -- \
/bin/bash -l -c "runuser runner$runner /exec/$language runner$runner $id"
/bin/bash -l -c "runuser runner$runner /exec/$language $id"
# process janitor
lxc-attach --clear-env -n piston -- \

View File

@ -1,4 +1,5 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' awk -f code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
xargs -a args.args -d '\n' timeout -s KILL 3 bash code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' brainfuck code.code < stdin.stdin

View File

@ -1,5 +1,5 @@
#!/usr/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 10 g++ -std=c++17 -o binary -x c++ code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 10 crystal build code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./code < stdin.stdin

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
mcs $(echo code.code | sed 's/\///') -nowarn:0219 -out:binary
timeout -s KILL 3 xargs -a args.args -d '\n' mono binary < stdin.stdin

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
cp code.code code.d
timeout -s KILL 10 dmd code.d
timeout -s KILL 3 xargs -a args.args -d '\n' ./code

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
xargs -a args.args -d '\n' timeout -s KILL 3 dash code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' deno run code.code < stdin.stdin

View File

@ -2,5 +2,5 @@
export LC_ALL="en_US.UTF-8"
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' elixir code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' emacs -Q --script code.code < stdin.stdin

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
cp code.code interim.go
go build interim.go
timeout -s KILL 3 xargs -a args.args -d '\n' ./interim < stdin.stdin

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
cp code.code code.hs
ghc -dynamic -o binary code.hs > /dev/null 2>&1
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' jelly fu code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' julia code.code < stdin.stdin

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
cp code.code code.kt
kotlinc code.kt -include-runtime -d code.jar
timeout -s KILL 3 xargs -a args.args -d '\n' java -jar code.jar < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' sbcl --script code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' lua code.code < stdin.stdin

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
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

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
nasm -f elf64 -o binary.o code.code
ld -m elf_x86_64 binary.o -o binary
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 10 nim --hints:off c code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./code

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' node code.code < stdin.stdin

View File

@ -4,5 +4,5 @@
export LC_ALL="en_US.UTF-8"
# osabie will break if you try using it with xargs
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 osabie code.code < args.args

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
export PYTHONPATH=$PYTHONPATH:/opt/paradoc
timeout -s KILL 3 python3.8 -m paradoc code.code < args.args

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' perl code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' php code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' python code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' python3.8 code.code < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' ruby code.code < stdin.stdin

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 10 rustc -o binary code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' swift code.code < stdin.stdin

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
mv code.code interim.ts
tsc interim.ts
rm -f interim.ts

View File

@ -1,6 +1,6 @@
#!/bin/bash
cd /tmp/$2
cd /tmp/$1
cp code.code main.zig
timeout -s KILL 10 zig build-exe main.zig
timeout -s KILL 3 xargs -a args.args -d '\n' ./main