Mercurial > hg > Members > tatsuki > Alice
view scripts/aquarium.sh @ 180:481dab56c3dc working
aquarium can execute on mountain lion (with java 1.6)
author | e095732 |
---|---|
date | Thu, 07 Feb 2013 20:07:39 +0900 |
parents | 23d6a775a643 |
children | 52dcead81b90 |
line wrap: on
line source
#!/bin/bash max=$1 child_num=$2 java=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java 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 ../Alice.jar 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 ../Alice.jar alice.test.topology.aquarium.FishMovementTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/aquarium${cnt}.log -level debug > ./output/std_aquarium${cnt}.log & cnt=`expr $cnt + 1` done wait