annotate bin/stress.sh @ 808:48ea50d346de

comment re dependency
author Jeff Hammel <k0scist@gmail.com>
date Fri, 28 Oct 2016 17:10:27 -0700
parents 1b8ea3a0cc9e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
768
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/bin/bash
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 # stress test a program
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 export I=0
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 while "$@"
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 do
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 echo ${I}
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 I=$((I+1))
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 sleep 5
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 done