for a feasibily study, i wanted to collect some data about the ping
statistics of
different websites from as may places as possibile, could some one help me
the sites choosen for sampling are
www.bplnet.com
www.eth.net
www.vsnl.net.in
www.emirates.net.ae
www.mp3.com
www.qgpc.com.qa
www.sex4free.com
ns1.motoringtimes.com
www.xoom.com
I would appreciate the ping report line containing 'round-trip'
for the command ping -c1 site
or output of this script at regular intervals (4 times) would be the best
---cut ----
#!/bin/bash
if [ ! -f "ispcheck.rep" ] ; then
> ispcheck.rep
fi
dat=`date +%d'-'%m'-'%Y' '%T`
report="$1:$dat"
isps="www.bplnet.com www.eth.net www.vsnl.net.in www.emirates.net.ae
www.qgpc.com.qa www.mp3.com www.sex4free.com ns1.motoringtimes.com
www.xoom.com"
for web in $isps ; do
echo -ne "\rChecking $web ... "
avgtime=`ping -c1 $web | grep 'round-trip'| awk '{print $4}' | awk -F'/'
'{print $2}'`
report="$report:$avgtime"
done
echo $report >> ispcheck.rep
echo
echo "when done, please send the ispcheck.rep file to [EMAIL PROTECTED]"
---till here
thanks to all
Jiju
-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help