Skip to main content.
home | support | download

Back to List Archive

Re: Trying to run spider.pl with self-defined config file...

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Sat Mar 06 2004 - 06:25:09 GMT
On Fri, Mar 05, 2004 at 05:13:30PM -0800, Justin Tang wrote:
> Hi:
>   I tried to run the following config file for spider.pl, but I got no =
> result.  Is there something wrong with my config file? This the command =
> line I ran:=20

Enable debugging?

(BTW -- anyone know why do I see =3D> in some posts?)
> 
> 
> /usr/local/lib/swish-e/spider.pl config.pl > output

> 
> 
> output is an empty file.
> 
> Here is the config.pl I passed in:
> 
> 
> my %serverA =3D (
>         base_url =3D> 'http://www.mysite.com',
>         same_hosts =3D> [qw/www.mysite.com/],
>         email =3D> 'test@mysite.com',
>         test_url =3D> sub { print 'TESTING\n\n';},
>         test_response =3D> sub { print 'TESTING RESPONSE\n\n';},
>         filter_content =3D> sub {
>                 print '\n\n\n\n\n';
>                 print $_[0];
>                 print '\n';
>                 print $_[1];
>                 print '\n';
>                 print $_[2];
>                 print '\n***************************************\n';
>                 print $_[3];
>                 return 1;
>         },
>         );
> 
> @server =3D (\%serverA);
> 1;
> 
> 
> Thanks!
> 
> -Justin
> 
> 
> *********************************************************************
> Due to deletion of content types excluded from this list by policy,
> this multipart message was reduced to a single part, and from there
> to a plain text message.
> *********************************************************************
> 

-- 
Bill Moseley
moseley@hank.org
Received on Fri Mar 5 22:25:09 2004