Mercurial > hg > Database > Alice
comparison scripts/aquarium.sh @ 181:52dcead81b90 working
minor change
author | e095732 |
---|---|
date | Fri, 08 Feb 2013 19:03:52 +0900 |
parents | 481dab56c3dc |
children | 2a8440684441 |
comparison
equal
deleted
inserted
replaced
180:481dab56c3dc | 181:52dcead81b90 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 if [ $# -ne 2 ]; then | |
3 echo "Usage: ./aquarium.sh NODENUM CHILDLENNUM" | |
4 exit 1 | |
5 fi | |
2 max=$1 | 6 max=$1 |
3 child_num=$2 | 7 child_num=$2 |
4 java=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java | 8 java=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java |
9 if [ ! -e $java ]; then | |
10 echo "$java not found." | |
11 exit 1 | |
12 fi | |
13 | |
5 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot | 14 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot |
6 dot -Tpng ./topology/tree.dot > ./topology/tree.png | 15 dot -Tpng ./topology/tree.dot > ./topology/tree.png |
7 #open ./topology/tree.png | 16 #open ./topology/tree.png |
8 $java -version | 17 $java -version |
9 $java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log & | 18 $java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log & |