Mercurial > hg > Database > Alice
comparison scripts/share_run.sh @ 147:ae6ed9c35288 working
change share test
author | sugi |
---|---|
date | Tue, 09 Oct 2012 19:29:33 +0900 |
parents | ed78890ed8e9 |
children | 2a8440684441 |
comparison
equal
deleted
inserted
replaced
146:36dc63d1bdcf | 147:ae6ed9c35288 |
---|---|
2 max=$1 | 2 max=$1 |
3 child_num=$2 | 3 child_num=$2 |
4 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot | 4 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot |
5 dot -Tpng ./topology/tree.dot > ./topology/tree.png | 5 dot -Tpng ./topology/tree.dot > ./topology/tree.png |
6 #open ./topology/tree.png | 6 #open ./topology/tree.png |
7 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log & | 7 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot & |
8 | 8 |
9 cnt=0 | 9 cnt=0 |
10 while [ $cnt -lt $max ] | 10 while [ $cnt -lt $max ] |
11 do | 11 do |
12 java -cp ../Alice.jar alice.test.topology.share.ShareTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/share${cnt}.log -level debug > ./output/std_share${cnt}.log & | 12 java -cp ../Alice.jar alice.test.topology.share.ShareTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` > ./output/std_share${cnt}.log & |
13 cnt=`expr $cnt + 1` | 13 cnt=`expr $cnt + 1` |
14 done | 14 done |
15 wait | 15 wait |