oops got posted to sthitaprjna's box...sorry

---------- Forwarded message ----------
Date: Fri, 16 Feb 2001 17:04:40 +0530 (IST)
From: sreangsu acharyya <[EMAIL PROTECTED]>
To: Sthitaprajna <[EMAIL PROTECTED]>
Subject: mtu selection script


If any body cares to run it on a ppp session.

host=
mtu=300
while [ $mtu -le 1500 ]
do
num=`ping -s $mtu -c 15 $host|grep round|cut -f 4 -d " "|cut -f 2 -d "/"`
mtu=`expr $mtu + 50`
tput=`echo "scale=3;$num/$mtu" | bc`
echo " $mtu $tput">output.txt
done

the parsing of pings output is very kludgy. Awk or perl would have been
better i guess. But i am sadly ignorant on those fields

-- sreangsu











----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to