Cron job for search
Currently disabled
The search stopped working today after some modifications I made and I can't get it working again :( I have disabled it, and removed the cron job for now.
I added a search form to the site at lower left. This required me to hook up the 'cron job' which basically is a command which runs at a set time every hour or so to update some things, like the search database. You don't want the server to be indexing the whole site every time somebody does a search for performance reasons, so this does it hourly and then when you search you see the index from that time. To do it, I had to edit the cron-lynx.sh file in the scripts folder and then edit my crontab (crontab -e) to add:
43 * * * * /path/tdb/scripts/cron-lynx.sh
The cron-lynx.sh file actually runs lynx (a text browser) and hits a certain page on the site (this way it's hitting it from the server itself, the only way it will work) which re-indexes the site.
The scripts clean up temp files and the like as well.


Recent comments
2 days 16 hours ago
2 days 20 hours ago
1 week 5 days ago
2 weeks 3 days ago
23 weeks 6 days ago
23 weeks 6 days ago
33 weeks 21 hours ago
33 weeks 22 hours ago
34 weeks 1 day ago
37 weeks 6 days ago