HALOG ELECTRONICS LOGBOOK ========================= Robert Michaels, Jefferson Lab, Jan 25, 2001 Purpose: Electronics logbook based on web. Authors: I believe Matt Bickley (Accelerator Div JLab) did most of the work. Steve Wood (Hall C) has also made major revisions. In Hall A, Robert Michaels is responsible, but I admit I don't know every line. Main Contents: halogscript -- run as a cron job every 3 minutes, it keeps the halog up to date. halogcron -- example of crontab entry to run halogscript halogentry -- script one invokes to make a manual entry. halogentry.file -- script to insert a file into the halog. Usage: "halogentry.file file keyword" where 'file' is the filename of file to insert, and 'keyword' is the short description of the web entry. Examples: See http://www.jlab.org/~adaq/halog/html/logdir.html for the results of these scripts. (But you'll need a password, call me for it.) If I left anything out: If I accidently left out something, you can see the entire code in jlabs1:/home/adaq/halog/src. The log itself is kept in jlabs1:/home/adaq/public_html/halog. How to proceed: The scripts are tied to a particular directory structure. One would have to hack the scripts to reorganize this structure to local needs. The script maintains 'logdir.html' which is the first thing users see. It also maintains archives sorted by months and temporary repositories. For example, the following diffs show how to modify halogscript when I adapted the "adaq" logbook to be the "parity" logbook. Some of the diffs are just getting rid of garbage (e.g. comments). 50,51c50,51 < $webmgr = "/group/halla/www/hallaweb/html/parity/"; < $httptj = "A HREF=http://hallaweb.jlab.org/parity/html"; --- > $webmgr = "/home/adaq/public_html/halog"; > $httptj = "A HREF=http://www.cebaf.gov/~adaq/halog"; 59c59,97 < $logbook = "PARITY"; --- > #=================================================================================== > #$httpwm = "~volmer/elogtemp/html/internal"; > #$logbook = $ARGV[0]; > #if ($logbook eq $CLOG) { > # #print( "using:: clog \n" ); > # close(STDERR); > # open( STDERR, "/usr/csite5/web/html/internal/cryo/clog/dolog.log"); > # $tmpdir = "$webmgr/html/internal/cryo/clog/tmp_html/"; > # $htmldir = "$webmgr/html/internal/cryo/clog/html/"; > # $logfile = "$webmgr/html/internal/cryo/clog/dolog.perl.log"; > # $refdir = "cryo/clog"; > # $scrollname = "clog_selection"; > # $LOGTITLE = "CHL"; > #} > #elsif ($logbook eq $FLOG) { > # #print( "using:: flog \n" ); > # close(STDERR); > # open( STDERR, "/usr/csite5/web/html/internal/fel/flog/dolog.log"); > # $tmpdir = "$webmgr/html/internal/fel/flog/tmp_html/"; > # $htmldir = "$webmgr/html/internal/fel/flog/html/"; > # $logfile = "$webmgr/html/internal/fel/flog/dolog.perl.log"; > # $refdir = "fel/flog"; > # $scrollname = "flog_selection"; > # $LOGTITLE = "FEL"; > #} > #elsif ($logbook eq $SLOG) { > # #print( "using:: slog \n" ); > # close(STDERR); > # open( STDERR, "/usr/csite5/web/html/internal/software/softlog/dolog.log"); > # $tmpdir = "$webmgr/html/internal/software/softlog/tmp_html/"; > # $htmldir = "$webmgr/html/internal/software/softlog/html/"; > # $logfile = "$webmgr/html/internal/software/softlog/dolog.perl.log"; > # $refdir = "software/softlog"; > # $scrollname = "slog_selection"; > # $LOGTITLE = "SOFTWARE"; > #} > #elsif ($logbook eq $HALOG) { > # #print( "using:: halog \n" ); > $logbook = "HALOG"; 61c99 < open( STDERR, "$webmgr/log/tmp_dir/dolog.log"); --- > open( STDERR, "/u/home/adaq/halog/log/dolog.log"); 67c105,153 < $LOGTITLE = "PARITY"; --- > $LOGTITLE = "HALL A"; > > #} > #elsif ($logbook eq $HBLOG) { > # #print( "using:: hblog \n" ); > # close(STDERR); > # open( STDERR, "/usr/csite5/web/html/internal/hallb/hblog/dolog.log"); > # $tmpdir = "$webmgr/html/internal/hallb/hblog/tmp_html/"; > # $htmldir = "$webmgr/html/internal/hallb/hblog/html/"; > # $logfile = "$webmgr/html/internal/hallb/hblog/dolog.perl.log"; > # $refdir = "hallb/hblog"; > # $scrollname = "hblog_selection"; > # $LOGTITLE = "HALL B"; > #} > #elsif ($logbook eq $HCLOG) { > # #print( "using:: hclog \n" ); > #$logbook = "HCLOG"; > # close(STDERR); > # open( STDERR, "/u/home/cdaq/hclog/log/dolog.log"); > # $tmpdir = "$webmgr/log/tmp_html/"; > # $htmldir = "$webmgr/log/html/"; > # $logfile = "$webmgr/log/dolog.perl.log"; > # $refdir = "log"; > # $scrollname = "hclog_selection"; > # $LOGTITLE = "HALL C"; > # > #} > #elsif ($logbook eq $ELOG) { > # #print( "using:: elog \n" ); > # close(STDERR); > # open( STDERR, "/usr/csite5/web/html/internal/ops/daily_activity_log/dolog.log"); > # $tmpdir = "$webmgr/html/internal/ops/daily_activity_log/tmp_html/"; > # $htmldir = "$webmgr/html/internal/ops/daily_activity_log/html/"; > # $logfile = "$webmgr/html/internal/ops/daily_activity_log/dolog.perl.log"; > # $refdir = "ops/daily_activity_log"; > # $scrollname = "elog_selection"; > # $LOGTITLE = "OPERATIONS"; > #} > #else { > # #print( "using:: elog \n" ); > # close(STDERR); > # open( STDERR, "/usr/csite5/web/html/internal/ops/daily_activity_log/dolog.log"); > # $tmpdir = "$webmgr/html/internal/ops/daily_activity_log/tmp_html/"; > # $htmldir = "$webmgr/html/internal/ops/daily_activity_log/html/"; > # $logfile = "$webmgr/html/internal/ops/daily_activity_log/dolog.perl.log"; > # $refdir = "ops/daily_activity_log"; > # $scrollname = "elog_selection"; > # $LOGTITLE = "OPERATIONS"; > #} 457a544 >