6 lines
174 B
Plaintext
6 lines
174 B
Plaintext
|
cp /*.code .
|
||
|
name=$(cat $1 | grep -Eo 'public class ([A-Za-z0-9]+)' | cut -d' ' -f3)
|
||
|
mv $1 $name.java
|
||
|
timeout -s KILL 10 javac $name.java
|
||
|
timeout -s KILL 3 java $name ${@:3}
|