view scripts/fishBeta_run.sh @ 112:912aed91d05b working

add TUNA object
author sugi
date Wed, 18 Jul 2012 10:53:03 +0900
parents 96674c803853
children f84e1684c6be
line wrap: on
line source

#!/bin/bash
max=$1
child_num=$2
ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
dot -Tpng ./topology/tree.dot > ./topology/tree.png
open ./topology/tree.png
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.fishmodel.beta.FishMovementTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/modelbeta${cnt}.log -level debug > ./output/std_modelbeta${cnt}.log &
    cnt=`expr $cnt + 1`
done
wait