<?php $fp = fsockopen("127.0.0.1", 1234, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { #$out = "queue.push /tmp/plupload/09 - Never Shall Be Again.mp3\r\n"; $out = "queue.push "; $out .= "/var/www/music/Nargaroth/Nargaroth - Spectral Visions Of Mental Warfare 2011/Nargaroth - Spectral Visions Of Mental Warfare 2011/01 - Odin's Weeping for Jordh.mp3"; $out .= "\r\n"; usleep(500); fwrite($fp, $out); echo fread($fp, 10); usleep(500); $out = "quit\r\n"; fwrite($fp, $out); echo "<br>".fread($fp, 10); fclose($fp); } ?>
last_xml = "/home/dbaelde/dolebrai_public_html/last.xml" def feedback(m) system("last.rb > #{last_xml}") end s = store_metadata(size=20,id="history",s) s = on_metadata(feedback,s)
2012/02/01 13:46:57 [output(dot)icecast(dot)lame:3] Restarting encoder after delay (3600s)
2012/02/01 13:43:41 [root:2] We must catchup 1.94 seconds!