mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
args
This commit is contained in:
parent
cfef629586
commit
6cc2496cd6
12 changed files with 18 additions and 18 deletions
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s KILL 3 nodejs $*
|
||||
timeout -s KILL 3 nodejs ${@:2}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s KILL 3 php $*
|
||||
timeout -s KILL 3 php ${@:2}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s KILL 3 python2 $*
|
||||
timeout -s KILL 3 python2 ${@:2}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s KILL 3 python3.6 $*
|
||||
timeout -s KILL 3 python3.6 ${@:2}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s KILL 3 Rscript $*
|
||||
timeout -s KILL 3 Rscript ${@:2}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s KILL 3 ruby $*
|
||||
timeout -s KILL 3 ruby ${@:2}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue