root/trunk/search.cgi

Revision 1162, 429 bytes (checked in by dom, 8 months 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
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 browser.