for some reason I cant embed the video so here..
[youtube]_Opv1WdchVY[/youtube]
GuideThis guide assumes you know how to telnet into the juggler.1. Go to /bin and create a file called bbc
Quote:
# cd /bin
# vi bbc
2. Press 'I' to edit and then copy and paste in the following script.
Code:
#!/bin/sh
# Live BBC Channels for the O2 Joggler by ARTOUK
echo BBC $1 Launching....
# BBC1
if [ "$1" = "1" ]; then
cd /openpeak/tango
./localrun http://www.bbc.co.uk/emp/10player.swf?playlist=http://www.bbc.co.uk/emp/simulcast/bbc_one_london.xml
fi
#BBC2
if [ "$1" = "2" ]; then
cd /openpeak/tango
./localrun http://www.bbc.co.uk/emp/10player.swf?playlist=http://www.bbc.co.uk/emp/simulcast/bbc_two_england.xml
fi
#BBC3
if [ "$1" = "3" ]; then
cd /openpeak/tango
./localrun http://www.bbc.co.uk/emp/10player.swf?playlist=http://www.bbc.co.uk/emp/simulcast/bbc_three.xml
fi
#BBC4
if [ "$1" = "4" ]; then
cd /openpeak/tango
./localrun http://www.bbc.co.uk/emp/10player.swf?playlist=http://www.bbc.co.uk/emp/simulcast/bbc_four.xml
fi
#BBC News 24
if [ "$1" = "news" ]; then
cd /openpeak/tango
./localrun http://www.bbc.co.uk/emp/10player.swf?playlist=http://www.bbc.co.uk/emp/simulcast/bbc_news24.xml
fi
#BBC Parliament
if [ "$1" = "parliament" ]; then
cd /openpeak/tango
./localrun http://www.bbc.co.uk/emp/10player.swf?playlist=http://www.bbc.co.uk/emp/simulcast/bbc_parliament.xml
fi
#CBBC
if [ "$1" = "cbbc" ]; then
cd /openpeak/tango
./localrun http://www.bbc.co.uk/emp/10player.swf?playlist=http://www.bbc.co.uk/emp/simulcast/cbbc.xml
fi
Press 'Esc' to exit insert mode then type ':wq' and press enter to save and quit.
3. Make 'bbc' executable
Quote:
# chmod +x bbc
How to UseNow you have setup the script you can launch it from any directory using the following..
Quote:
# bbc 'channel number/name'
Launch Arguments:
1 = BBC One
2 = BBC Two
3 = BBC Three
4 = BBC Four
news = BBC News 24
parliament = BBC Parliament
cbbc = CBBC
Quote:
Examples
# bbc 1
# bbc news
Ctrl+C to quit
Other NotesYeh I know you shouldnt really put your own script in /bin but didn't think it really mattered..
Also please feel free to rehash and include whatever bits of this in your own script provided you give credit
