annotate scripts/fish_run.sh @ 390:e29cf08ad1f3
multicast
add CalculatePosition CodeSegment
author |
sugi |
date |
Mon, 16 Jun 2014 21:45:43 +0900 |
parents |
2a8440684441 |
children |
|
rev |
line source |
37
|
1 #!/bin/bash
|
|
2 max=$1
|
|
3 child_num=$2
|
348
|
4 jar_path=../build/libs/Alice.jar
|
|
5
|
37
|
6 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
|
348
|
7 java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log &
|
37
|
8
|
|
9 cnt=0
|
|
10 while [ $cnt -lt $max ]
|
|
11 do
|
348
|
12 java -cp $jar_path alice.test.topology.fish.DistributedFish -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/fish${cnt}.log -level debug > ./output/std_fish${cnt}.log &
|
37
|
13 cnt=`expr $cnt + 1`
|
|
14 done
|
|
15 wait
|