Mercurial > hg > Database > Alice
comparison scripts/ring_manager_run.sh @ 31:5c704b9a9a87
add ring script
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Jan 2012 20:24:46 +0900 |
parents | |
children | 20616fe4d28a |
comparison
equal
deleted
inserted
replaced
30:b5a21baf0b07 | 31:5c704b9a9a87 |
---|---|
1 #!/bin/bash | |
2 max=$1 | |
3 ruby ./topology/ring.rb $1 > ./topology/ring.dot | |
4 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/ring.dot & | |
5 | |
6 cnt=0 | |
7 while [ $cnt -lt $max ] | |
8 do | |
9 java -cp ../Alice.jar alice.test.topology.ring.RingTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` > ./output/ring${cnt}.log & | |
10 cnt=`expr $cnt + 1` | |
11 done | |
12 wait |