#!/bin/perl5 $\ = "\n"; $directory = "/import/ftp/pub/lennox/superguy/"; use CGI; $query = new CGI; @logfilesfound = glob("$directory/sguy*[0-9] $directory/sguy*.gz"); # Globbing order should work okay with the new four-digit filenames. shift(@logfilesfound) =~ /sguy(\d*)/; ($log_lower = $1) =~ s/^0*//; pop(@logfilesfound) =~ /sguy(\d*)/; ($log_upper = $1) =~ s/^0*//; $query->autoEscape(undef); print $query->header; print $query->start_html('The Superguy Autocollector','lennox@cs.columbia.edu'); print <The Superguy Autocollector Welcome to the Superguy Automatic Collection generator!

END print $query->startform('Get',"http:autocollect-srv.cgi"); print "Search for posts matching pattern: ",$query->textfield('pattern','',30); %patterns = ("string" => " string", "casestring" => " case insensitive string", "regexp" => " regular expression"); print "

using ",$query->radio_group('searchtype', ['string','casestring','regexp'], 'casestring',0,\%patterns), " matching"; print "

in logs ",$query->textfield('start',$log_lower,5), " through ",$query->textfield('end',$log_upper,5),"."; print "

", $query->checkbox('index',undef,'on', " Show index entries instead of post contents."); print "

"; print $query->submit('Search'); print $query->endform; print < The collections the Autocollector generates are created from the Superguy archives, which are also available by FTP at ftp://ftp.cs.columbia.edu/pub/lennox/superguy/ or ftp://ftp.eyrie.org/pub/superguy/.

The Autocollector selects the posts to output by performing the appropriate sort of matching on the complete index. If your search didn't find a post you were expecting to find, you might want to browse that file to find out what is wrong.

All material extracted by the Autocollector is copyright its respective Authors. See the Superguy FAQ for details.

Jonathan Lennox
lennox\@cs.columbia.edu
April 3, 1996 END print $query->end_html;