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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -