clean_search_results.pl - Script to cleanup the results directory of stale results
# From the command line # Use default 30 minute threshold $ perl clean_search_results.pl --website_dir=/path/to/mysite # Use 45 minute threshold $ perl clean_search_results.pl --website_dir=/path/to/mysite --minutes=45 # Use the environment variable and the default 30 minute threshold $ export OPENINTERACT2=/path/to/mysite $ perl clean_search_results.pl # From a cron job - run every hour at 45 minutes past. 45 * * * * perl /path/to/mysite/script/clean_search_results.pl --website_dir=/path/to/mysite
Simple script -- just scan the entries in the results directory and get rid of the ones older than x (default: 30) minutes.
OpenInteract2::ResultsManage
OpenInteract2::Manual::SearchResults
Copyright (c) 2001-2003 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
To install OpenInteract2::URL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenInteract2::URL
CPAN shell
perl -MCPAN -e shell install OpenInteract2::URL
For more information on module installation, please visit the detailed CPAN module installation guide.