Reputation: 351
I want to measure how long it takes to finish this part of the script like this:
startdelete=`date +%s`
for i in $(nova list --all-tenants|grep spawningtest|awk '{print $2}')
do nova delete $i
done &>/dev/null
enddelete=`date +%s`
deletetime=$((enddelete-startdelete))
echo $deletetime > /var/tmp/lindeletetime
I have 2 questions:
Upvotes: 0
Views: 67
Reputation: 351
2nd part should be this I think:
while ping -c1 10.104.202.207;do sleep 1;done
Upvotes: 1