/[cricket]/generate-overview.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /generate-overview.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by dpavlin, Mon Sep 9 15:17:54 2002 UTC revision 1.9 by dpavlin, Fri May 23 07:41:26 2003 UTC
# Line 34  BEGIN { Line 34  BEGIN {
34          # You need to update this to point to the URL          # You need to update this to point to the URL
35          # you use to access Cricket.          # you use to access Cricket.
36  #       $gBaseURL = "http://localhost/~cricket/grapher.cgi";  #       $gBaseURL = "http://localhost/~cricket/grapher.cgi";
37          $gBaseURL = "http://romul.pliva.hr/cgi-bin/cricket/grapher.cgi";          my $hostname = `hostname -f`;
38            chomp($hostname);
39            $gBaseURL = "http://$hostname/cgi-bin/cricket/grapher.cgi";
40    
41          # change this to destination directory          # change this to destination directory
42          $path = "/data/mon/";          $path = "/data/mon/";
# Line 105  foreach my $key (keys %html_file) { Line 107  foreach my $key (keys %html_file) {
107          }          }
108          Info("Dumping HTML for $key to $filename.");          Info("Dumping HTML for $key to $filename.");
109          open(OUT,"> $filename") || die "can't open output html '$filename': $!";          open(OUT,"> $filename") || die "can't open output html '$filename': $!";
110          print OUT "<html><head><title>$key</title></head><body>";          print OUT "<html><head><title>$key</title>";
111            print OUT '<meta content="no-cache" http-equiv="Pragma">
112                    <meta content="300" http-equiv="Refresh">' if ($filename =~ m/Daily/i);
113            print OUT "</head><body>";
114          print OUT $html_file{$key};          print OUT $html_file{$key};
115          print OUT "</body></html>";          print OUT "</body></html>";
116          close(OUT);          close(OUT);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26