terminado
[MHWsCURYlr.git] / run.sh
blob75117b357a8fa1fadf2d16a0daa84d978718b6f4
1 #!/bin/bash
2 dir_names=("tcp/null" "tcp/sort" "udp/null" "udp/sort" "rpc/null/tcp" "rpc/null/udp" "rpc/sort/tcp" "rpc/sort/udp" "rmi/null" "rmi/sort")
3 for d in {0..9}
4 do
5 dir_name=${dir_names[$d]}
6 echo "$dir_name"
7 mv "$dir_name/out.txt" "$dir_name/out.bak.txt"
8 for j in {0..3}
9 do
10 #echo "$j"
11 for i in {0..9}
13 #echo "$i"
14 if [ "$d" = "8" ] || [ "$d" = "9" ]
15 then
16 cd "$dir_name"
17 #java Client 127.0.0.1:808"$d" >> "out.txt"
18 java Client 143.54.12.150:808"$d" >> "out.txt"
19 cd "../../"
20 else
21 #./"$dir_name/client" 127.0.0.1 808"$d" >> "$dir_name/out.txt"
22 ./"$dir_name/client" 143.54.12.150 808"$d" >> "$dir_name/out.txt"
24 done
25 sleep 60
26 done
27 ./calc.rb "$dir_name/out.txt"
28 done