Mercurial > hg > Database > Alice
comparison scripts/share_run.sh @ 348:2a8440684441
change Jar Path
author | sugi |
---|---|
date | Mon, 21 Apr 2014 20:00:05 +0900 |
parents | ae6ed9c35288 |
children |
comparison
equal
deleted
inserted
replaced
347:4f534c07d41e | 348:2a8440684441 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 max=$1 | 2 max=$1 |
3 child_num=$2 | 3 child_num=$2 |
4 jar_path=../build/libs/Alice.jar | |
5 | |
4 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot | 6 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot |
5 dot -Tpng ./topology/tree.dot > ./topology/tree.png | 7 dot -Tpng ./topology/tree.dot > ./topology/tree.png |
6 #open ./topology/tree.png | 8 #open ./topology/tree.png |
7 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot & | 9 java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot & |
8 | 10 |
9 cnt=0 | 11 cnt=0 |
10 while [ $cnt -lt $max ] | 12 while [ $cnt -lt $max ] |
11 do | 13 do |
12 java -cp ../Alice.jar alice.test.topology.share.ShareTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` > ./output/std_share${cnt}.log & | 14 java -cp $jar_path alice.test.topology.share.ShareTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` > ./output/std_share${cnt}.log & |
13 cnt=`expr $cnt + 1` | 15 cnt=`expr $cnt + 1` |
14 done | 16 done |
15 wait | 17 wait |