[Dxspider-support] WebCluster
    Michael Serowik 
    maserowik at verizon.net
       
    Fri Oct  5 20:47:36 BST 2012
    
    
  
I had to completely rebuild my system due to a system board error.
I got the system back up and running with the old notes I had.
Operating system is Ubuntu 12.04 LTS
 
I have the webcluster website up and running but for some reason I am unable
to get the counter to work.
 
root at DX-Spider:/usr/lib/cgi-bin# ls
spider.cgi  webcluster  webcluster10  webcluster35  webcluster.cnt
root at DX-Spider:/usr/lib/cgi-bin# ls -l
total 16
-rwxrwxrwx 1 sysop sysop 3065 Oct  4 18:10 spider.cgi
-rwxr-xr-x 1 root  root   312 Oct  5 15:01 webcluster
-rwxr-xr-x 1 root  root   312 Oct  5 15:02 webcluster10
-rwxr-xr-x 1 root  root   312 Oct  5 15:02 webcluster35
-rwxr-xr-x 1 root  root     0 Oct  5 15:09 webcluster.cnt
root at DX-Spider:/usr/lib/cgi-bin#
 
root at DX-Spider:/usr/local/bin# ls -l
total 84
-rwxr-xr-x 1 root root 73074 Oct  3 07:10 noip2
-rwxr-xr-x 1 root root 10068 Oct  5 14:56 webcluster.pl
 
 
 
 
# read and increase hit counter
#if (open(CNTFILE, "/var/local/httpd/cgi-bin/webcluster.cnt")) {  -<
original line
if (open(CNTFILE, "/usr/lib/cgi-bin/webcluster.cnt")) {
    $cnt = <CNTFILE>;
    close(CNTFILE);
    chop($cnt);
    $cnt++;
} else {
    $cnt = 1;
}
 
# write counter back to file
#if (open(CNTFILE, ">/var/local/httpd/cgi-bin/webcluster.cnt")) {  -<
Original Line
if (open(CNTFILE, ">/usr/lib/cgi-bin/webcluster.cnt")) {
    printf(CNTFILE "$cnt\n");
    close(CNTFILE);
}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20121005/96ffab2a/attachment-0001.html>
    
    
More information about the Dxspider-support
mailing list