comparison scripts/ring_run.sh @ 48:f60c0246c8ce

add ring experiment shell script
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Sat, 04 Feb 2012 16:27:10 +0900
parents scripts/ring_manager_run.sh@1a498f436332
children 84cfcc8e1bce
comparison
equal deleted inserted replaced
47:5b6624b2f055 48:f60c0246c8ce
1 #!/bin/bash
2
3 if [ ! -d output ]; then
4 mkdir output
5 fi
6
7 max=$1
8 count=$2
9 ruby ./topology/ring.rb $1 > ./topology/ring.dot
10 #dot -Tpng ./topology/ring.dot > ./topology/ring.png
11 #open ./topology/ring.png
12 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/ring.dot -log ./output/manager.log -level info &
13
14 cnt=0
15 while [ $cnt -lt $max ]
16 do
17 java -cp ../Alice.jar alice.test.topology.ring.RingTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/ring${cnt}.log -level info -count $count &
18 cnt=`expr $cnt + 1`
19 done
20 wait