Mercurial > hg > Members > tatsuki > Alice
view scripts/keeparive.sh @ 369:0c24894db37e multicast
MulticastDataSegment's extends change from LocalDataSegment to RemoteDataSegment
author | sugi |
---|---|
date | Tue, 20 May 2014 15:00:21 +0900 |
parents | 2a8440684441 |
children |
line wrap: on
line source
#!/bin/bash if [ $# -ne 2 ]; then echo "Usage: ./keeparive.sh NODENUM CHILDLENNUM" exit 1 fi max=$1 child_num=$2 if [ ! -e $java ]; then echo "$java not found." exit 1 fi jar_path=../build/libs/Alice.jar ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot dot -Tpng ./topology/tree.dot > ./topology/tree.png #open ./topology/tree.png java -version 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.topology.manager.keeparive.KeepAlive -host `hostname` -port 10000 -p `expr 20000 + $cnt` -level debug > ./output/std_keepalive${cnt}.log & cnt=`expr $cnt + 1` done wait