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