X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcallbot.pl;h=a1150bb168a110a20c6010436215ec8b3086ea1d;hb=14fa5913c9b5be9f55ef741236aaafbe516f64fe;hp=6d845a215a91263667ef5b05bca1df629bce94ac;hpb=9b16ab623efe48723ba472624cf4020b155f683c;p=spider.git diff --git a/perl/callbot.pl b/perl/callbot.pl index 6d845a21..a1150bb1 100755 --- a/perl/callbot.pl +++ b/perl/callbot.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/bin/env perl # # an attempt at producing a general purpose 'bot' for going and getting # things orf the web and presenting them to user in a form they want @@ -10,13 +10,20 @@ # # Copyright (c) 1999 - Dirk Koopman, Tobit Computer Co Ltd # -# $Id$ +# # package main; BEGIN { - unshift @INC, '.'; + umask 002; + + # root of directory tree for this system + $root = "/spider"; + $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'}; + + unshift @INC, "$root/perl"; # this IS the right way round! + unshift @INC, "$root/local"; } use strict;