Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.

hpr1247 :: Recording Terrestrial Radio with bash scripts and cron jobs

Using a Bash script to capture terrestrial radio

<< First, < Previous, Latest >>

Host Image
Hosted by Jon Kulp on 2013-05-14 is flagged as Explicit and is released under a CC-BY-SA license.
Listen in ogg, spx, or mp3 format. | Comments (1)

Part of the series: Bash Scripting

This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.

In this episode I talk about my solution for capturing terrestrial radio so that I can listen to it at my own convenience. I use a bash script, cron jobs, and the streamripper package. here are some links to things I mentioned in the podcast.

Jezra's command-line audio player sap (simple audio player):


Radio station KRVS 88.7 FM, Lafayette, Louisiana, USA

And you can see the whole radio-recording script here:


Subscribe to the comments RSS feed.

Comment #1 posted on 2013-05-15T20:22:05Z by timttmy


Hi Jon,
I've pulled in live streams in the past using mplayer with the -dumpstream option (mplayer http://yoururl/stream.mp3 -dumpstream) and started and stopped the operation with atd (I never fully gotten my head around cron).
I'll take a look at streamripper. I like the sound of the option to specify the duration of the rip as an argument of the utility.


Leave Comment

Powered by Comment Script