Mercurial > hg > Database > Alice
view scripts/ring_run.sh @ 72:728c254347a6
modify output of ring script
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Feb 2012 21:11:50 +0900 |
parents | d4c7f7b1096b |
children | 54f5b5496bfe |
line wrap: on
line source
#!/bin/bash if [ ! -d output ]; then mkdir output fi max=$1 count=$2 ruby ./topology/ring.rb $1 > ./topology/ring.dot #dot -Tpng ./topology/ring.dot > ./topology/ring.png #open ./topology/ring.png java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/ring.dot -log ./output/manager.log -level debug & cnt=0 while [ $cnt -lt $max ] do java -cp ../Alice.jar alice.test.topology.ring.RingTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/ring${cnt}.log -level debug -count $count -size 4096 & cnt=`expr $cnt + 1` done wait