mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-06 03:46:27 +02:00
updated commands
This commit is contained in:
parent
f6f6eaf502
commit
8dcfea4b90
17 changed files with 61 additions and 16 deletions
|
@ -1,2 +1,2 @@
|
|||
timeout -s KILL 10 gcc -o binary -x c $1
|
||||
timeout -s KILL 3 cat /*.args | xargs -d '\n' ./binary
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' ./binary"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
timeout -s KILL 10 g++ -o binary -x c++ $1
|
||||
timeout -s KILL 3 cat /*.args | xargs -d '\n' ./binary
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' ./binary"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
cp /*.code .
|
||||
timeout -s KILL 10 mcs $(echo $1 | sed 's/\///') -out:binary
|
||||
timeout -s KILL 3 cat /*.args | xargs -d '\n' mono binary
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' mono binary"
|
||||
|
|
|
@ -2,4 +2,4 @@ cp /*.code interim.go
|
|||
file="interim.go"
|
||||
timeout -s KILL 10 go build $file
|
||||
file=${file%%.*}
|
||||
timeout -s KILL 3 cat /*.args | xargs -d '\n' ./$file
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' ./$file"
|
||||
|
|
|
@ -2,4 +2,4 @@ cp /*.code interim.java
|
|||
name=$(cat interim.java | grep -Eo 'public\s+class\s+([A-Za-z0-9]+)' | sed -n 's/ */ /gp' | cut -d' ' -f3)
|
||||
mv interim.java $name.java
|
||||
timeout -s KILL 10 javac $name.java
|
||||
timeout -s KILL 3 cat /*.args | xargs -d '\n' java $name
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' java $name"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
timeout -s KILL 10 nasm -f elf64 -o binary.o $1
|
||||
timeout -s KILL 10 ld binary.o -o binary
|
||||
timeout -s KILL 3 cat /*.args | xargs -d '\n' ./binary
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' ./binary"
|
||||
|
|
|
@ -1 +1 @@
|
|||
timeout -s KILL 3 cat /*.args | xargs -d '\n' nodejs $1
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' nodejs $1"
|
||||
|
|
|
@ -1 +1 @@
|
|||
timeout -s KILL 3 cat /*.args | xargs -d '\n' php $1
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' php $1"
|
||||
|
|
|
@ -1 +1 @@
|
|||
timeout -s KILL 3 cat /*.args | xargs -d '\n' python2 $1
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' python2 $1"
|
||||
|
|
|
@ -1 +1 @@
|
|||
timeout -s KILL 3 cat /*.args | xargs -d '\n' python3.6 $1
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' python3.6 $1"
|
||||
|
|
|
@ -1 +1 @@
|
|||
timeout -s KILL 3 cat /*.args | xargs -d '\n' Rscript $1
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' Rscript $1"
|
||||
|
|
|
@ -1 +1 @@
|
|||
timeout -s KILL 3 cat /*.args | xargs -d '\n' ruby $1
|
||||
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' ruby $1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue