KDE and Cricket scorecard…
Posted by Anurag on 16 February, 2006
I was just seeing the scorecard in the India-Pakistan match. I wondered whether I could help out my browser from those refreshes. I wasn't seeing each and every line of the commentry, so why not have something better, like a desktop scorecard, but a little less annoying.
I wrote a script that will SPECIFICALLY give me a live scorecard of TODAY's CRICKET MATCH. It can be modified to work more generically. Here is a sample output.
Just download it and run. It will work if you have KDE.
#!/bin/sh
while [ 1 ]
do
rm -f IND_PAK_ODI4_16FEB2006.main.html
wget http://usa.cricinfo.com/db/ARCHIVE/2005-06/IND_IN_PAK/SCORECARDS/frames/IND_PAK_ODI4_16FEB2006.main.html
info1=`cat IND_PAK_ODI4_16FEB2006.main.html | grep overs| grep Cricinfo| cut -f 2 -d \'`
info2=`cat IND_PAK_ODI4_16FEB2006.main.html | grep overs| grep Current|cut -f 2- -d :|cut -f 1 -d \<`
info2="Current Partnership: $info2"
info3=`cat IND_PAK_ODI4_16FEB2006.main.html | grep overs| grep Last|cut -f 2- -d :|cut -f 1 -d \<`
info3="Last batsman: $info3"
info="$info1 — $info2 — $info3"
kdialog –passivepopup "$info" 30 &
done
Eat cricket, sleep cricket, use only K D E!!
Posted in KDE tips and tricks | 3 Comments »



