annotate scripts/share_run.sh @ 349:335e5846e154
If you create Jar file, you should read README.
author |
sugi |
date |
Mon, 21 Apr 2014 20:01:24 +0900 |
parents |
2a8440684441 |
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
|