Quick thought is this. There are others.
Using xmms and set the output driver to Disk Writer.
Then create a text file and name it say stream.pls
Example of one below.
Then run the command ' xmms -p /home/username/stream.pls
To automate it, add it to your cron file.
Contents of stream.pls
Title1=(#1 - 165/550) NBOX RADIO: KMGX - The Best Mix of the 80s, 90s and Today
This links talks about many ways to do it.