Index: trunk/ippMonitor/INSTALL
===================================================================
--- trunk/ippMonitor/INSTALL	(revision 24394)
+++ trunk/ippMonitor/INSTALL	(revision 24662)
@@ -14,2 +14,5 @@
  psconfigure --dbhost ipp004 --dbuser ipp --dbpass ipp --htdocs ~ipp/htdocs
 
+ipp@ipp004 / ippdb01 example:
+ psconfigure --dbhost ippdb01 --dbuser ipp --dbpass ipp --htdocs ~/htdocs --site ~/ippconfig/ipprc.config
+
Index: trunk/ippMonitor/configure.tcsh
===================================================================
--- trunk/ippMonitor/configure.tcsh	(revision 24394)
+++ trunk/ippMonitor/configure.tcsh	(revision 24662)
@@ -18,4 +18,5 @@
 set libdir  = ""
 set datadir = ""
+set site = ""
 
 set DBI     = "DB"
@@ -107,4 +108,12 @@
    endif
    breaksw;
+  case --site*
+   if ("$1" == "--site") then
+     shift
+     set site = $1
+   else
+     set site = `echo $1 | tr = ' ' | awk '{print $2}'`
+   endif
+   breaksw;
   case --useMDB2
    set DBI = "MDB2"
@@ -129,4 +138,5 @@
 echo "libdir: $libdir"
 echo "datadir:$datadir"
+echo "site:   $site"
 echo "htdocs: $htdocs"
 echo "dbhost: $dbhost"
@@ -157,4 +167,10 @@
   if ("$prefix" == "") goto usage
   set datadir = $prefix/share
+endif
+
+# SITE defines the location of the ipprc.config file
+if ("$site" == "") then
+  if ("$datadir" == "") goto usage
+  set site = $datadir/ippconfig/ipprc.config
 endif
 
@@ -174,5 +190,5 @@
 cat tmp.1           | sed "s|@BINDIR@|$bindir|"  > tmp.2
 cat tmp.2           | sed "s|@PERLLIB@|$libdir|" > tmp.1
-cat tmp.1           | sed "s|@SITE@|$datadir|"   > tmp.2
+cat tmp.1           | sed "s|@SITE@|$site|"      > tmp.2
 cat tmp.2           | sed "s|@DBI@|$DBI|"        > raw/site.php
 rm -f tmp.1 tmp.2
@@ -183,10 +199,11 @@
 
 usage:
+if ($#args > 1) then
+  echo unrecognized options: $args
+endif
+
 cat <<EOF
 USAGE: configure [OPTION]
 
-echo $#args
-echo remaining args: $args
-
 set the WWW installation directory root with --htdocs
 set the IPP installation directory root with --prefix
@@ -194,5 +211,7 @@
 set the database host, user, password with: --dbhost, --dbuser, -dbpass
  
-either --prefix or all of --bindir, --libdir, --datadir are required
+either --prefix or both --bindir and --libdir and [--datadir or --site] are required
+
+if both --datadir and --site are defined, --site overrides the ipprc.config definition
 
 Configuration:
@@ -206,4 +225,5 @@
   --libdir=DIR           object code libraries [PREFIX/lib/$ARCH]
   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+  --site=PATH            location of the ipprc.config file [DATADIR/ippconfig/ipprc.config]
 
 EOF
Index: trunk/ippMonitor/def/camProcessedExp.d
===================================================================
--- trunk/ippMonitor/def/camProcessedExp.d	(revision 24394)
+++ trunk/ippMonitor/def/camProcessedExp.d	(revision 24662)
@@ -10,8 +10,4 @@
 WHERE camProcessedExp.cam_id  = camRun.cam_id
 WHERE camProcessedExp.fault = 0
-
-# define image names to be used below
-# IMAGE VAR basename filerule camera class_id
-IMAGE JPEG2 $camProcessedExp.path_base PPIMAGE.JPEG2 $rawExp.camera NONE
 
 # define the arguments supplied to the links below (if any)
@@ -32,6 +28,6 @@
 FIELD chipRun.chip_id,           	 5,   %s,     Chip ID,      value,  	 chipProcessedImfile.php, ARG2
 FIELD camRun.cam_id,             	 5,   %s,     Cam ID,       value,  	 camProcessedExp.php,     ARG3
+FIELD camRun.state,                      5,   %s,     state,        value,  	 camProcessedImfile.php,  ARG4
 FIELD camRun.label,             	 5,   %s,     Label
-FIELD *,    	                	 8,   %s,     image,        image=JPEG2, camProcessedImfile.php,  ARG4
 FIELD rawExp.telescope,      		10,   %s,     Telescope
 FIELD rawExp.camera,         		10,   %s,     Camera
Index: trunk/ippMonitor/raw/ipp.science.dat
===================================================================
--- trunk/ippMonitor/raw/ipp.science.dat	(revision 24394)
+++ trunk/ippMonitor/raw/ipp.science.dat	(revision 24662)
@@ -39,7 +39,7 @@
 menulink  | menuselect 	 | link    | Cam-Stage Exp                | camStageExp.php            
 menulink  | menuselect 	 | link    | Cam Pending Exp              | camPendingExp.php              
+menulink  | menuselect 	 | link    | Cam IQ Stats                 | camIQstats.php            
 menulink  | menuselect 	 | link    | Cam Processed Exp            | camProcessedExp.php            
 menulink  | menuselect 	 | link    | Cam Proc. w/ Images          | camProcessedExp_Images.php            
-menulink  | menuselect 	 | link    | Cam IQ Stats                 | camIQstats.php            
 menulink  | menuselect 	 | link    | Cam Failed Exp               | camProcessedExp_failure.php
 menulink  | menuselect 	 | link    | Cam Processed Imfiles        | camProcessedImfile.php            
Index: trunk/ippMonitor/raw/site.php.in
===================================================================
--- trunk/ippMonitor/raw/site.php.in	(revision 24394)
+++ trunk/ippMonitor/raw/site.php.in	(revision 24662)
@@ -7,5 +7,5 @@
 $PERLLIB = "@PERLLIB@";
 $BINDIR  = "@BINDIR@";
-$SITE    = "@SITE@/ippconfig/ipprc.config";
+$SITE    = "@SITE@";
 
 $DBI     = "@DBI@";
