bash shell script for 100 iteration and log time taken -


how run 100 iterations using bash shell script? want know how long take execute 1 command (start , end time). want keep track iteration running. want log each iteration. have 1 automated script need run , log it.

for in 1 2 3     command1 done 

but want know how long takes complete 1 iteration - , write information log file too!

you may use seq in interation well:

for in `seq 1 100`; ... done


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -