add an RBN line to progress
[spider.git] / perl / callbot.pl
index 6d845a215a91263667ef5b05bca1df629bce94ac..ba9f99f086e5e054f1f32bcfabc46d817a4294a2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/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
 #
 # 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;