Mercurial > hg > Database > Alice
diff scripts/fish_run.sh @ 37:ebd44d3e8578
add fish scripts
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 20 Jan 2012 19:13:31 +0900 |
parents | |
children | 73158dc54c59 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/fish_run.sh Fri Jan 20 19:13:31 2012 +0900 @@ -0,0 +1,13 @@ +#!/bin/bash +max=$1 +child_num=$2 +ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot +java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot & + +cnt=0 +while [ $cnt -lt $max ] +do + java -cp ../Alice.jar alice.test.topology.fish.DistributedFish -host `hostname` -port 10000 -p `expr 20000 + $cnt` >& ./output/fish${cnt}.log & + cnt=`expr $cnt + 1` +done +wait