<?xml version="1.0" encoding="windows-1252"?>
<node id="393037" title="Re^4: MP3 server with IO::Socket" created="2004-09-22 16:14:44" updated="2005-07-07 14:35:38">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
No, this would be the shortest.. and a command line command:

&lt;CODE&gt;
while true; do NUM=`find /home/MP3/Bob_marley/*.mp3 | wc -l`; rand=$(($RANDOM%$NUM)); song=`find /home/MP3/Bob_marley/*.mp3 | sed -n ${rand}p`; echo "HTTP/1.0 200 OK\nContent-Type: audio/x-mp3stream\n\n"; dd if="$song" bs=1024; done | nc -l -p 8020
&lt;/CODE&gt;

-- joey@scare.org --</field>
<field name="root_node">
8650</field>
<field name="parent_node">
392748</field>
<field name="reputation">
2</field>
</data>
</node>
