http://qs321.pair.com?node_id=393037


in reply to Re^3: MP3 server with IO::Socket
in thread MP3 server with IO::Socket

No, this would be the shortest.. and a command line command:
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
-- joey@scare.org --