<div dir="ltr"><div>Hi Mike, thanks for the script!</div><div><br></div><div>When you say we have to rebuild the demand indexes manually, what do you mean? And why only manually?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 7, 2020 at 2:48 PM Michael Schwartz (PC Support & Services) via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Hi! What is an easy way to rebuild all indexes? (running this from a<br>
> menu is okay for now)<br>
> <br>
> We are running filePro 5.8 on Linux (CentOS 6.10).<br>
> <br>
> Eventually, I would like to automate this process from the command line if<br>
> possible.<br>
> <br>
> Thanks,<br>
> Ross<br>
> <br>
> I found the following:<br>
> <a href="http://mailman.celestial.com/pipermail/filepro-list/2016-" rel="noreferrer" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/2016-</a><br>
> January/032416.html<br>
> <br>
> echo "Started `date`" >/home/mjs/retime<br>
> cd /u/appl/filepro<br>
> for file in *<br>
> do echo $file<br>
> if [[ -d $file ]]; then<br>
> echo "Starting Freechain:" $file `date` >>/home/mjs/retime<br>
> /u/appl/fp/lib/freechain $file<br>
> echo $file `date` >>/home/mjs/retime<br>
> /u/appl/fp/dxmaint $file -ra -e<br>
> fi<br>
> done<br>
> echo "Ended `date`" >>/home/mjs/retime<br>
<br>
That's not a bad script to start with. Of course, I'm prejudiced<br>
because I wrote it... <grin><br>
<br>
It rebuilds the freechains and *ONLY* the automatic indexes. (You<br>
have to rebuild demand indexes manually...) <br>
<br>
All the paths are hard-coded, so change it to suit your needs. I<br>
start with that and edit it for each of my customers as needed. <br>
<br>
Of course, it needs to be run when all your users are out of the<br>
server and preferably immediately after a system reboot, so that all the<br>
lockfiles are removed. <br>
<br>
Enjoy!<br>
<br>
Mike Schwartz <br>
<br>
<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</blockquote></div>