SH_v2

The script can be run off command line with parameter “-s” for single
time run, or with parameter “-r n” for multiple time run (n the number
of runs)