BTW - here's the simple code used to refresh the streams.cfg file.. (playlist file automatically generated from shoutcast using my other script; stripstreams.sh)
...Not the most elegant solution (I think having rioplay grab the shoutcast playlist file from a webserver location would be better.. Dave?) but it works -
#!/bin/bash
cd h:/audio/Playlists/shoutcast/rio
cscript exec.vbs /x `cscript ps.vbs | grep armgr.exe | cut -b0-10`
sleep 1
if [ ! -d "etc" ]; then
mkdir etc
fi
rm -f etc/streams.cfg
cat fav_mark >> etc/streams.cfg
cat fav_frank >> etc/streams.cfg
for playlist in `ls ../*.rio`; do
echo -n "<title>" >> etc/streams.cfg
echo $playlist | cut -f2 -d"/" | cut -f1 -d"." >> etc/streams.cfg
grep -v "<title>" ${playlist} >> etc/streams.cfg
done
tar -f /c/Program\ Files/Audio\ Receiver/receiver.arf --delete ./etc/streams.cfg
tar uf /c/Program\ Files/Audio\ Receiver/receiver.arf ./etc/streams.cfg
cscript exec.vbs /e "c:\progra~1\audior~1\armgr "