annotate scripts/fish_run.sh @ 390:e29cf08ad1f3 multicast

add CalculatePosition CodeSegment
author sugi
date Mon, 16 Jun 2014 21:45:43 +0900
parents 2a8440684441
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/bin/bash
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 max=$1
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 child_num=$2
348
2a8440684441 change Jar Path
sugi
parents: 44
diff changeset
4 jar_path=../build/libs/Alice.jar
2a8440684441 change Jar Path
sugi
parents: 44
diff changeset
5
37
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
348
2a8440684441 change Jar Path
sugi
parents: 44
diff changeset
7 java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log &
37
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 cnt=0
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 while [ $cnt -lt $max ]
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 do
348
2a8440684441 change Jar Path
sugi
parents: 44
diff changeset
12 java -cp $jar_path alice.test.topology.fish.DistributedFish -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/fish${cnt}.log -level debug > ./output/std_fish${cnt}.log &
37
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 cnt=`expr $cnt + 1`
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 done
ebd44d3e8578 add fish scripts
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 wait