
This is a small script in to play BBC [1-9] on a Ubuntu / GNU/Linux box. Requirements are:
ii mplayer 2:1.0~rc2-0ubuntu17 The Ultimate Movie Player For Linux
ii beep 1.2.2-20 advanced pc-speaker beeper
Enjoy!
bbc[0]=""
bbc[1]="http://www.bbc.co.uk/radio1/realaudio/media/r1live.ram"
bbc[2]="http://www.bbc.co.uk/radio2/realmedia/fmg2.ram"
bbc[3]="http://www.bbc.co.uk/radio3/ram/r3g2.ram"
bbc[4]="http://www.bbc.co.uk/radio4/realplayer/media/fmg2.ram"
bbc[5]="http://www.bbc.co.uk/fivelive/live/surestream_int.ram"
bbc[6]="http://www.bbc.co.uk/6music/ram/6music.asx"
bbc[7]="http://www.bbc.co.uk/bbc7/realplayer/bbc7.asx"
bbc[8]="http://www.bbc.co.uk/england/realmedia/live/localradio/leeds.ram"
bbc[9]="http://www.bbc.co.uk/1xtra/realmedia/1xtra.asx"
function playp {
killall mplayer;
# Uncomment to beep before starting to fill the cache.
# beep -r 2 -l 80 -f 900&
mplayer -quiet -cache 384 -playlist $1
}
if [ $# -eq 0 ]
then
echo “usage bbc 1″
for ((i=0; i<${#bbc[@]}; i++))
do
echo $i . ${bbc[$i]}
done
exit 1
fi
playp ${bbc[${1}]}





