IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24662 for trunk/ippMonitor


Ignore:
Timestamp:
Jul 3, 2009, 11:46:32 AM (17 years ago)
Author:
eugene
Message:

allow ippMonitor installation to define specific ipprc.config file; remove image display from non-image camera page

Location:
trunk/ippMonitor
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/INSTALL

    r16469 r24662  
    1414 psconfigure --dbhost ipp004 --dbuser ipp --dbpass ipp --htdocs ~ipp/htdocs
    1515
     16ipp@ipp004 / ippdb01 example:
     17 psconfigure --dbhost ippdb01 --dbuser ipp --dbpass ipp --htdocs ~/htdocs --site ~/ippconfig/ipprc.config
     18
  • trunk/ippMonitor/configure.tcsh

    r21137 r24662  
    1818set libdir  = ""
    1919set datadir = ""
     20set site = ""
    2021
    2122set DBI     = "DB"
     
    107108   endif
    108109   breaksw;
     110  case --site*
     111   if ("$1" == "--site") then
     112     shift
     113     set site = $1
     114   else
     115     set site = `echo $1 | tr = ' ' | awk '{print $2}'`
     116   endif
     117   breaksw;
    109118  case --useMDB2
    110119   set DBI = "MDB2"
     
    129138echo "libdir: $libdir"
    130139echo "datadir:$datadir"
     140echo "site:   $site"
    131141echo "htdocs: $htdocs"
    132142echo "dbhost: $dbhost"
     
    157167  if ("$prefix" == "") goto usage
    158168  set datadir = $prefix/share
     169endif
     170
     171# SITE defines the location of the ipprc.config file
     172if ("$site" == "") then
     173  if ("$datadir" == "") goto usage
     174  set site = $datadir/ippconfig/ipprc.config
    159175endif
    160176
     
    174190cat tmp.1           | sed "s|@BINDIR@|$bindir|"  > tmp.2
    175191cat tmp.2           | sed "s|@PERLLIB@|$libdir|" > tmp.1
    176 cat tmp.1           | sed "s|@SITE@|$datadir|"   > tmp.2
     192cat tmp.1           | sed "s|@SITE@|$site|"      > tmp.2
    177193cat tmp.2           | sed "s|@DBI@|$DBI|"        > raw/site.php
    178194rm -f tmp.1 tmp.2
     
    183199
    184200usage:
     201if ($#args > 1) then
     202  echo unrecognized options: $args
     203endif
     204
    185205cat <<EOF
    186206USAGE: configure [OPTION]
    187207
    188 echo $#args
    189 echo remaining args: $args
    190 
    191208set the WWW installation directory root with --htdocs
    192209set the IPP installation directory root with --prefix
     
    194211set the database host, user, password with: --dbhost, --dbuser, -dbpass
    195212 
    196 either --prefix or all of --bindir, --libdir, --datadir are required
     213either --prefix or both --bindir and --libdir and [--datadir or --site] are required
     214
     215if both --datadir and --site are defined, --site overrides the ipprc.config definition
    197216
    198217Configuration:
     
    206225  --libdir=DIR           object code libraries [PREFIX/lib/$ARCH]
    207226  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     227  --site=PATH            location of the ipprc.config file [DATADIR/ippconfig/ipprc.config]
    208228
    209229EOF
  • trunk/ippMonitor/def/camProcessedExp.d

    r19183 r24662  
    1010WHERE camProcessedExp.cam_id  = camRun.cam_id
    1111WHERE camProcessedExp.fault = 0
    12 
    13 # define image names to be used below
    14 # IMAGE VAR basename filerule camera class_id
    15 IMAGE JPEG2 $camProcessedExp.path_base PPIMAGE.JPEG2 $rawExp.camera NONE
    1612
    1713# define the arguments supplied to the links below (if any)
     
    3228FIELD chipRun.chip_id,                   5,   %s,     Chip ID,      value,       chipProcessedImfile.php, ARG2
    3329FIELD camRun.cam_id,                     5,   %s,     Cam ID,       value,       camProcessedExp.php,     ARG3
     30FIELD camRun.state,                      5,   %s,     state,        value,       camProcessedImfile.php,  ARG4
    3431FIELD camRun.label,                      5,   %s,     Label
    35 FIELD *,                                 8,   %s,     image,        image=JPEG2, camProcessedImfile.php,  ARG4
    3632FIELD rawExp.telescope,                 10,   %s,     Telescope
    3733FIELD rawExp.camera,                    10,   %s,     Camera
  • trunk/ippMonitor/raw/ipp.science.dat

    r24016 r24662  
    3939menulink  | menuselect   | link    | Cam-Stage Exp                | camStageExp.php           
    4040menulink  | menuselect   | link    | Cam Pending Exp              | camPendingExp.php             
     41menulink  | menuselect   | link    | Cam IQ Stats                 | camIQstats.php           
    4142menulink  | menuselect   | link    | Cam Processed Exp            | camProcessedExp.php           
    4243menulink  | menuselect   | link    | Cam Proc. w/ Images          | camProcessedExp_Images.php           
    43 menulink  | menuselect   | link    | Cam IQ Stats                 | camIQstats.php           
    4444menulink  | menuselect   | link    | Cam Failed Exp               | camProcessedExp_failure.php
    4545menulink  | menuselect   | link    | Cam Processed Imfiles        | camProcessedImfile.php           
  • trunk/ippMonitor/raw/site.php.in

    r21137 r24662  
    77$PERLLIB = "@PERLLIB@";
    88$BINDIR  = "@BINDIR@";
    9 $SITE    = "@SITE@/ippconfig/ipprc.config";
     9$SITE    = "@SITE@";
    1010
    1111$DBI     = "@DBI@";
Note: See TracChangeset for help on using the changeset viewer.