This commit is contained in:
Brian Seymour 2018-10-05 20:26:22 -05:00
parent cfef629586
commit 6cc2496cd6
12 changed files with 18 additions and 18 deletions

View File

@ -75,6 +75,6 @@ docker run \
piston \
runuser \
-l runner \
-c "/$bin /$file $file 2>&1 | head -c 65536"
-c "/$bin /$file $file ${@:2} 2>&1 | head -c 65536"
rm -f /tmp/$file

View File

@ -1,4 +1,4 @@
#!/bin/sh
gcc -o binary -x c $1
timeout -s KILL 3 ./binary
timeout -s KILL 10 gcc -o binary -x c $1
timeout -s KILL 3 ./binary ${@:2}

View File

@ -1,4 +1,4 @@
#!/bin/sh
g++ -o binary -x c++ $1
timeout -s KILL 3 ./binary
timeout -s KILL 10 g++ -o binary -x c++ $1
timeout -s KILL 3 ./binary ${@:2}

View File

@ -1,5 +1,5 @@
#!/bin/sh
cp /*.code .
mcs $(echo $1 | sed 's/\///') -out:binary
timeout -s KILL 3 mono binary
timeout -s KILL 10 mcs $(echo $1 | sed 's/\///') -out:binary
timeout -s KILL 3 mono binary ${@:2}

View File

@ -2,8 +2,8 @@
file=$1
go build $file
timeout -s KILL 10 go build $file
file=${file%%.*}
timeout -s KILL 3 ./$file
timeout -s KILL 3 ./$file ${@:2}

View File

@ -1,5 +1,5 @@
#!/bin/sh
nasm -f elf64 -o binary.o $1
ld binary.o -o binary
timeout -s KILL 3 ./binary
timeout -s KILL 10 nasm -f elf64 -o binary.o $1
timeout -s KILL 10 ld binary.o -o binary
timeout -s KILL 3 ./binary ${@:2}

View File

@ -1,3 +1,3 @@
#!/bin/sh
timeout -s KILL 3 nodejs $*
timeout -s KILL 3 nodejs ${@:2}

View File

@ -1,3 +1,3 @@
#!/bin/sh
timeout -s KILL 3 php $*
timeout -s KILL 3 php ${@:2}

View File

@ -1,3 +1,3 @@
#!/bin/sh
timeout -s KILL 3 python2 $*
timeout -s KILL 3 python2 ${@:2}

View File

@ -1,3 +1,3 @@
#!/bin/sh
timeout -s KILL 3 python3.6 $*
timeout -s KILL 3 python3.6 ${@:2}

View File

@ -1,3 +1,3 @@
#!/bin/sh
timeout -s KILL 3 Rscript $*
timeout -s KILL 3 Rscript ${@:2}

View File

@ -1,3 +1,3 @@
#!/bin/sh
timeout -s KILL 3 ruby $*
timeout -s KILL 3 ruby ${@:2}