annotate scripts/ring_experiment.sh @ 372:0aff26fb2375 multicast

no need FishMovementConfig
author sugi
date Mon, 02 Jun 2014 16:43:36 +0900
parents f60c0246c8ce
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/bin/bash
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 cnt=$1 # start num
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 d=$2 # diff
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 max=$3 # max num
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 while [ $cnt -lt $max ]
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 do
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 ./ring_run.sh 10 $cnt
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 cnt=`expr $cnt + $d`
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 done
f60c0246c8ce add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 wait