I use this php script to cause a rescan in VortexBox after we autorip a
CD. Just use a cron job to check the file system for changes once and a
while and run this when there is a change.
#!/usr/bin/php
<?php
$fp=pfsockopen("127.0.0.1",9090);
fputs($fp,"rescan\r");
sleep(1);
$output=fread($fp,128);
$stat=socket_get_status($fp);
if ($stat["unread_bytes"] > 0) {
$output.=fread($fp, $stat["unread_bytes"]);
}
echo urldecode($output)."\n";
fclose($fp);
?>
--
agillis
rip, tag, get cover artÂ… All you do is insert the CD!
http://vortexbox.org
agillis
Lead Developer VortexBox
------------------------------------------------------------------------
agillis's Profile: http://forums.slimdevices.com/member.php?userid=21140
View this thread: http://forums.slimdevices.com/showthread.php?t=64398
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss