Skip to content

Instantly share code, notes, and snippets.

@jarvist
Created March 29, 2012 13:45
Show Gist options
  • Save jarvist/2237589 to your computer and use it in GitHub Desktop.
Save jarvist/2237589 to your computer and use it in GitHub Desktop.
Play Radio 4 from the command line, linux
#!/bin/sh
mplayer -playlist "http://bbc.co.uk/radio/listen/live/r4.asx"
#Nb: also replace with r4x, r6 etc.
#Also you can write get the script to ask for the stream with the same name as
# it's called with (i.e. ${0}) and then generate a load of sym-links from r4/r4x/r6 to this script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment