On Thu, 2007-10-11 at 13:42 -0400, Ross Vandegrift wrote:
Hi,
Thanks everyone again for your suggestions. The above is exactly what I
was thinking of. Thanks very much Ross. I owe you a beer.
I had to make a couple of small changes.
CURRENT=$(cat /proc/diskstats | grep sdb\ | awk '{ print $8 }')
LAST=0
while true; do
echo -en l = $LAST c = $CURRENT \\n
sleep 5
CURRENT=$(cat /proc/diskstats | grep sdb\ | awk '{ print $8 }')
if [ $LAST == $CURRENT ]; then
break
fi
LAST=$CURRENT
done
Cheers.
--
Patrick Shirkey
Boost Hardware Ltd.