view scripts/ring_manager_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 5c704b9a9a87
children 20616fe4d28a
line wrap: on
line source

#!/bin/bash
max=$1
ruby ./topology/ring.rb $1 > ./topology/ring.dot
java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/ring.dot &

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