projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add better new user logging in PC92/PC19
[spider.git]
/
perl
/
callbot.pl
diff --git
a/perl/callbot.pl
b/perl/callbot.pl
index 6d845a215a91263667ef5b05bca1df629bce94ac..ba9f99f086e5e054f1f32bcfabc46d817a4294a2 100755
(executable)
--- a/
perl/callbot.pl
+++ b/
perl/callbot.pl
@@
-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
#
# 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
#
#
# Copyright (c) 1999 - Dirk Koopman, Tobit Computer Co Ltd
#
-#
$Id$
+#
#
package main;
BEGIN {
#
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;
}
use strict;