view scripts/fish_run.sh @ 44:73158dc54c59

fix peek api
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Sat, 04 Feb 2012 01:34:57 +0900
parents ebd44d3e8578
children 2a8440684441
line wrap: on
line source

#!/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 -log ./output/manager.log -level debug > ./output/std_manager.log &

cnt=0
while [ $cnt -lt $max ]
do
    java -cp ../Alice.jar 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 &
    cnt=`expr $cnt + 1`
done
wait