2018-10-06 04:16:32 +02:00
|
|
|
cp /*.code interim.java
|
2018-10-06 04:39:44 +02:00
|
|
|
name=$(cat interim.java | grep -Eo 'public\s+class\s+([A-Za-z0-9]+)' | sed -n 's/ */ /gp' | cut -d' ' -f3)
|
2018-10-06 04:16:32 +02:00
|
|
|
mv interim.java $name.java
|
2018-10-06 04:11:12 +02:00
|
|
|
timeout -s KILL 10 javac $name.java
|
|
|
|
timeout -s KILL 3 java $name ${@:3}
|