Previous Post: How RAID-5 really works
Next Post: Linux: How to setup custom shortcuts in KDE
Dec 12, 2007 at 10:19 am - 3 Comments
This is a simple shell script that will lookup Chris Pirillo's Live Stream page and get the video stream ID (Im not sure if the ID changes or not, so I decided to make it lookup dynamically instead of using a static ID), and then launches flashplayer with the direct flash feed file URL. You of course will need flashplayer installed. It was installed by default on my Mandriva 08 install.
This simple script may not be the most efficient, but it gets the job done. I am a newbie with shell scripting so if you think this can be better, let me know!
Create a file in your favorite text editor called something such as chris-stream.sh and paste in the following code:
#!/bin/sh
i=`wget http://chris.pirillo.com/live/ -q -O -| grep -o "video=.*usc" | sed s/"video="//g`
`flashplayer http://ustream.tv/$i`
You will then need to set execution permission for the file from command line (you may need to su to root first)
chmod 775 chris-stream.sh
Copy this file to the /usr/bin directory
cp chris-stream.sh /usr/bin/chris-stream.sh
You can now launch the stream by running the command chris-stream.sh from the command line or run dialog (Alt+F2)
Or a much simpler route, if the ID is actually static (again im not sure if they change or not), you can simply open up flashplayer directly, and enter the following URL:
http://ustream.tv/XNNCxeJ6icRBcYSZm,eDKw.usc


Menekali Dec 19, 2007
Haha he's playing around with that $299 laptop. This guys awesome, and I love his set up, and he's freaking out because he can't get the janky computer to work!
Menekali Jan 05, 2008
Hey! Chris prililos bot just mentioned you in the IRC channel!
Chris Aug 08, 2008
I cannot, for the life of me, get this to work in Ubuntu Hardy Heron!