view scripts/share_run.sh @ 286:b4c9128c4c4e

Remove unused initializing.
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Fri, 18 Oct 2013 03:13:54 +0900
parents ae6ed9c35288
children 2a8440684441
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 &

cnt=0
while [ $cnt -lt $max ]
do
    java -cp ../Alice.jar alice.test.topology.share.ShareTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` > ./output/std_share${cnt}.log &
    cnt=`expr $cnt + 1`
done
wait