Hi! your variable is set incorrectly and your logic is a bit wrong. Try changing your script into this:
Code:
wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp -o testme.log
string1=`grep failed testme.log`
**your test here**
Hope that helps.