Ok. I'm pretty comfortable with linux but I am having problems with
MusicIP. My setup is a headless ubuntu server (8.04) with the latest SC
up and running. I have installed mmserver and it is starting up no
problem.
I had started running genpuid on my Mp3 directory but after an
overnight run with no information being reported, I killed the process
to try and get a better view of what is going on. Next I tried running
genpuid with -archive but it makes a mess of my mp3's changing
permissions on 90% of the files and I am not too comfortable leaving a
program that I don't fully understand modify my mp3's.
So what I understood was that I could create a cache file which
mmserver would read (instead of taking it from the mp3 tags). I split
my genpuid run into multiple runs generating multiple cache files (with
multiple instances I cannot write to the same cache file) and this
was/is running fine.
However what do I do with these cache files? There seems to be no
configuration option to tell mmserver to use multiple cache files (or
am I missing something?) Any ideas? Where am I going wrong here? IS it
a requirement to use a single cache file? If so how do you do multiple
concurrent genpuid runs?
In the mmserver config webpage there is a validation button, what does
this do?
Thanks in advance
BTW Here is the perl script that I used to split the genpuid run :
Code:
--------------------
#!/usr/bin/perl -w
use Parallel::ForkManager;
my $mp3dir = "/home/data/Mp3";
my $cachedir = "/var/cache/genpuid";
opendir(MP3,$mp3dir) || die "Can't open $mp3dir\n";
my @dirs = grep { /^[^\.]/ } readdir (MP3);
closedir MP3;
my $pm = new Parallel::ForkManager(3);
foreach my $dir ( sort @dirs ) {
$dir = "\"" . $dir . "\"";
$pm->start and next; # fork
print "Starting on $dir ",`date`,"\n";
print `genpuid xxxxxxxxx -m3lib=$cachedir/$dir.m3lib -r $mp3dir/$dir`;
print "Finish with $dir ",`date`,"\n\n";
$pm->finish;
}
$pm->wait_all_children;
--------------------
--
Diarmuid
------------------------------------------------------------------------
Diarmuid's Profile: http://forums.slimdevices.com/member.php?userid=595
View this thread: http://forums.slimdevices.com/showthread.php?t=53127
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix