annotate scripts/share_run.sh @ 226:6d546924eea0
sort is success but it has bug
author |
sugi |
date |
Thu, 28 Mar 2013 21:05:39 +0900 |
parents |
ae6ed9c35288 |
children |
2a8440684441 |
rev |
line source |
106
|
1 #!/bin/bash
|
|
2 max=$1
|
|
3 child_num=$2
|
|
4 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
|
|
5 dot -Tpng ./topology/tree.dot > ./topology/tree.png
|
135
|
6 #open ./topology/tree.png
|
147
|
7 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot &
|
106
|
8
|
|
9 cnt=0
|
|
10 while [ $cnt -lt $max ]
|
|
11 do
|
147
|
12 java -cp ../Alice.jar alice.test.topology.share.ShareTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` > ./output/std_share${cnt}.log &
|
106
|
13 cnt=`expr $cnt + 1`
|
|
14 done
|
|
15 wait
|