[greenstone-users] Incremental collection building

From Bertrand SODJAHIN
DateThu Jan 31 00:39:09 2008
Subject [greenstone-users] Incremental collection building
Hi every body !
I have a problem while building my collection incrementaly through a PHP script.
Here is the script :

function collectionRebuilding($tab_collection) {
if (count($tab_collection)>=1) {
foreach($tab_collection as $key => $value) {
echo shell_exec('cd /home/www/vi/greenstone/gsdl ; source setup.bash ; import.pl -incremental '.$value.' ; ');
echo shell_exec('cd /home/www/vi/greenstone/gsdl ; source setup.bash ; buildcol.pl -incremental -builddir building '.$value.' ;');
} return true;
}else {
echo "NO COLLECTION TO BUILD";
return false;
}
}
But it never do it !

If I do a complete building which takes too much time it's works. Here is the correspondind script

function collectionRebuilding($tab_collection) {
if (count($tab_collection)>=1) {
foreach($tab_collection as $key => $value) {
shell_exec('cd /home/www/vi/greenstone/gsdl ; source setup.bash ; import.pl -removeold '.$value.' ; ');
shell_exec('cd /home/www/vi/greenstone/gsdl ; source setup.bash ; buildcol.pl -removeold '.$value.' ;');
echo shell_exec('cd /home/www/vi/greenstone/gsdl/collect/'.$value.' ; rm -fr index/* ; mv building/* index ; ');
}

return true;
}else {
echo "NO COLLECTION TO BUILD";
return false;
}

}

Some body can help finding why it's not working for the incremental option ?
THANKS


---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------- section suivante --------------
Une pi□ce jointe HTML a □t□ enlev□e...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20080130/48bc3cc8/attachment-0001.html