Re: [LAD] [OT] bash vs disk activity

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ross Vandegrift <ross@...>
Cc: <linux-audio-dev@...>
Date: Friday, October 12, 2007 - 4:34 am

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.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] [OT] bash vs disk activity, Sampo Savolainen, (Tue Oct 9, 11:02 am)
Re: [LAD] [OT] bash vs disk activity, Lars Luthman, (Tue Oct 9, 11:12 am)
Re: [LAD] [OT] bash vs disk activity, Rui Nuno Capela, (Tue Oct 9, 2:11 pm)
Re: [LAD] [OT] bash vs disk activity, Forest Bond, (Tue Oct 9, 1:16 pm)
Re: [LAD] [OT] bash vs disk activity, Patrick Shirkey, (Wed Oct 10, 2:51 am)
Re: [LAD] [OT] bash vs disk activity, Forest Bond, (Wed Oct 10, 10:38 am)
Re: [LAD] [OT] bash vs disk activity, Patrick Shirkey, (Thu Oct 11, 4:52 am)
Re: [LAD] [OT] bash vs disk activity, Paul Davis, (Thu Oct 11, 8:44 am)
Re: [LAD] [OT] bash vs disk activity, Forest Bond, (Thu Oct 11, 12:48 pm)
Re: [LAD] [OT] bash vs disk activity, Luis Garrido, (Thu Oct 11, 8:32 am)
Re: [LAD] [OT] bash vs disk activity, Patrick Shirkey, (Thu Oct 11, 8:58 am)
Re: [LAD] [OT] bash vs disk activity, Patrick Shirkey, (Tue Oct 9, 11:58 am)
Re: [LAD] [OT] bash vs disk activity, Ross Vandegrift, (Thu Oct 11, 5:42 pm)
Re: [LAD] [OT] bash vs disk activity, Patrick Shirkey, (Fri Oct 12, 4:34 am)
Re: [LAD] [OT] bash vs disk activity, Arnold Krille, (Tue Oct 9, 9:42 pm)