Andrea Whitlock
 
May 13, 2008

 

Home | About This Site | Contact | Access Statistics






 
  Email Me
  Résumé
  HTMLPerlSETI
  Remote Controls
  Home Theater
  For Sale
  Public Links
  Private Links



  HTMLPerlSETI      09/02/2002 version 0.17

INSTALL : HTMLPerlSETI

First make sure the Perl modules in MODULES are installed. Then copy htmlperlseti.pl, htmlperlseti.conf, and htmlperlseti.hosts to a directory where cgi scripts run. Copy the bar GIF files to an appropriate place (e.g. images/ or to the same directory that htmlperlseti.pl was copied to). Make sure to edit htmlperlseti.pl, htmlperlseti.conf, and htmlperlseti.hosts and configure appropriately. There are some defaults that will probably not need to be changed, but be sure to configure at least the following:
  • $BAREMPTY, $BARFULL, $BARLEFT, $BARRIGHT, and $BARSHADOW (URLs to bar GIFs)
  • %netlist (setiathomedatadir, savefile, rshcommand, and pscommand for each host)
If perl isn't in /usr/bin on your system, you need to edit the first line of the script with the correct path (e.g. #!/usr/local/bin/perl).

Make sure you have read permission set on the setiathome files (work_unit.sah, etc.).

Make sure you have execute permission set on the script.

You might need to rename the script to .cgi (or something else) to get it to work under your web server.

If you see "Can't open the high-score data file ..." or a similar message for the Processing State, try running htmlperlseti.pl from the command line once, so it can set up its data files. Make sure the setiathomedatadir directories specified in %netlist have permissions to read and create the data file(s). Make sure the data file(s) can be updated by the webuser (the user that cgi scripts run as).

See MODULES if you get perl errors like:
  • Can't locate SETI/Stats.pm in @INC
    (@INC contains:
    /usr/local/lib/perl5/5.00502/sun4-solaris
  • /usr/local/lib/perl5/5.00502
    /usr/local/lib/perl5/site_perl/5.005/sun4-solaris
  • /usr/local/lib/perl5/site_perl/5.005 .) at ./htmlperlseti.pl line 165.
  • BEGIN failed--compilation aborted at ./htmlperlseti.pl line 165.
Both HTMLPerlSETI and SETI::Stats assume a Bourne style login shell, where 2> syntax (redirect stderr) is valid. If you must run HTMLPerlSETI in a non-sh shell (csh, for example), you can edit htmlperlseti.pl and change the "`$pingcommand > /dev/null 2>&1`;" line to "`$pingcommand >& /dev/null;" and edit the installed SETI/Stats.pm file and change the line with "cat $filename 2>/dev/null" to "cat $filename". See SETI-STATS-README for more info on SETI::Stats changes.

Call htmlperlseti.pl as a CGI from an HTML page. For example:

View SETI@home <A HREF="cgi-bin/htmlperlseti.pl">full</A> or <A HREF="cgi-bin/htmlperlseti.pl?summaryonly">summary</A> statistics.

 
   
 < Back a Page Top of Page  ^