update args

This commit is contained in:
Brian Seymour 2018-10-05 20:39:47 -05:00
parent 6cc2496cd6
commit 5f71c63b65
12 changed files with 7 additions and 29 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,3 @@
#!/bin/sh
file=$1
timeout -s KILL 10 go build $file

View File

@ -1,5 +1,3 @@
#!/bin/sh
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 @@
#!/bin/sh
timeout -s KILL 3 nodejs ${@:2}
timeout -s KILL 3 nodejs $1 ${@:2}

View File

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

View File

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

View File

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

View File

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

View File

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