source: trunk/search.cgi @ 1162

Last change on this file since 1162 was 1162, checked in by Dominic Hargreaves, 14 years ago

Install signal handlers in reindex.pl and CGI scripts to allow
temporary files (eg from Plucene) to be cleaned up. (fixes #247)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 429 bytes
Line 
1#!/usr/local/bin/perl
2
3use warnings;
4use strict;
5use sigtrap die => 'normal-signals';                                           
6
7use CGI;
8use OpenGuides::Config;
9use OpenGuides::Search;
10
11my $config_file = $ENV{OPENGUIDES_CONFIG_FILE} || "wiki.conf";
12my $config = OpenGuides::Config->new( file => $config_file );
13my $search = OpenGuides::Search->new( config => $config );
14my %vars = CGI::Vars();
15$search->run( vars => \%vars );
Note: See TracBrowser for help on using the repository browser.