Step 5You're in Business!
iImage Information

That's all there is to it, to test your handiwork you can right click the streamrecord job in Kcron, choose 'run now' and check for mystream.wav in your /tmp directory. If it's there (and growing fast), run the pkill job and you should soon see the mystream.wav disappear from your /tmp directory, and a new .mp3 file in the directory you specified when you altered the script. If you're recording a long show, keep in mind that it will take a decent amount of time to encode your .wav file. On one 3 hour show I record, it takes approximately 10 minutes to encode to mp3. If you have any problems getting this to work, feel free to drop me a line.
Stuff
P.S. I know my methods are a bit crude, as there are probably best-practices that I'm not following in some of my steps, so please don't school me on Linux 101, this is just a quick and dirty way to never miss your favorite audio stream.
What stream are you accessing? I have no problems getting to a local radio station, that stream is encoded as an asf. How exactly are you invoking this stream from the command line? I tried this:
cd /scripts
sh streamrecord
and it worked fine, then tried it in kcron using 'run now' command, and again had no problems. Please try again to manually launch the script and see if you can get it to fail. I'm more interested in launching the actual script, not just
mplayer url.
Let me know if this sheds any light on your problem. Thanks,
Shawn
03 00 * * 2-6 script URL filename
I edited it to redirect output/error messages like so:
03 00 * * 2-6 script URL filename > $HOME/logfile 2>&1
Now it works just fine! By the way, there's some useful info here that I've used together with your how-to in order to record directly to ogg/mp3 without creating a temporary wav file: http://www.tomtaylor.co.uk/blog/2007/04/17/play-it-again/
Thanks again, it's so cool to be able to record streams automatically.
John.
Looking forward to listening to the radio show tomorrow that will be recorded while I snooze tonight!
all the best,
john.