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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -