Mercurial > hg > Database > Alice
annotate scripts/ring_experiment.sh @ 605:b7eedaa38aeb dispose
close
author | suruga |
---|---|
date | Wed, 19 Apr 2017 19:19:50 +0900 |
parents | f60c0246c8ce |
children |
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 |