annotate scripts/share_run.sh @ 137:ed78890ed8e9 working

Share Test
author sugi
date Sun, 26 Aug 2012 18:33:13 +0900
parents 2f401fd70311
children ae6ed9c35288
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
106
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
1 #!/bin/bash
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
2 max=$1
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
3 child_num=$2
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
4 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
5 dot -Tpng ./topology/tree.dot > ./topology/tree.png
135
2f401fd70311 create No Graphic aquarium
sugi
parents: 106
diff changeset
6 #open ./topology/tree.png
106
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
7 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log &
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
8
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
9 cnt=0
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
10 while [ $cnt -lt $max ]
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
11 do
137
ed78890ed8e9 Share Test
sugi
parents: 135
diff changeset
12 java -cp ../Alice.jar alice.test.topology.share.ShareTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/share${cnt}.log -level debug > ./output/std_share${cnt}.log &
106
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
13 cnt=`expr $cnt + 1`
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
14 done
c84a2b4a877a add LooKData.java
sugi
parents:
diff changeset
15 wait