please remember that I am also a beginner.
By chance my now works.
here is my specific code that works, I am sorry I do not want to make it generic in case I write something false.
Code:
#!/bin/sh
NOW=$(date +"%b-%d-%y")
mplayer "mms://66.70.119.243/B105" -ao pcm:file=/media/General/Radio/Hamish_Andy/mystream_$NOW.wav -vc dummy -vo null > /media/General/Radio/Hamish_Andy/error.log
lame -m s /media/General/Radio/Hamish_Andy/mystream_$NOW.wav -o "/media/General/Radio/Hamish_Andy/Hamish and Andy - $NOW.mp3" >/media/General/Radio/Hamish_Andy/scripterror.log 2>&1
#mplayer "http://resources.b105.com.au/listenfeed/b105.asx" -ao pcm:file=/media/General/Radio/mystream_NOW.wav -vc dummy -vo null > /media/General/Radio/kcron_$NOW.txt
I am pretty sure that the two error logs are what made it work for me. They just overwrite each day.
Bookmarks