view scripts/fish_run.sh @ 530:4aeebea0c9b5 dispose

can't unzip
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Sun, 03 May 2015 10:04:28 +0900
parents 2a8440684441
children
line wrap: on
line source

#!/bin/bash
max=$1
child_num=$2
jar_path=../build/libs/Alice.jar

ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
java -cp $jar_path 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 $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 &
    cnt=`expr $cnt + 1`
done
wait