Hi I am a new member,can any one help me
#!/bin/sh
# 'clear'
for i in $(seq -w 15 37)
do
#echo $i
string1= wget --
dns-timeout=0.001
http://napdweb${i}.eao.abn-iad.ea.co.../test/test.jsp;
if [ "$string1" = "$Resolving napdweb${i}.eao.abn-iad.ea.com...failed connection timed out." ];
then
echo "May be napdweb${i}.eao.abn-iad.ea.com...has hung, please restart."
else
echo "Everything is good and fine"
fi
done
~
After the wget command is executed,i assigned that string to another string called string1. so in the next step when that string1 is equal to a particular string as i given in program, it should display a msg as server is down please restart otherwise else part should be displayed.I dont know why my logic is not running can any one solve it plssssssss