Index: trunk/ippMonitor/def/detProcessedExp.d
===================================================================
--- trunk/ippMonitor/def/detProcessedExp.d	(revision 14113)
+++ trunk/ippMonitor/def/detProcessedExp.d	(revision 14128)
@@ -11,6 +11,6 @@
 IMAGE JPEG2 $detProcessedExp.path_base PPIMAGE.JPEG2 $rawExp.camera NONE
 
-ARGS  ARG1 det_id=$detProcessedExp.det_id
-ARGS  ARG1 exp_id=$detProcessedExp.exp_id
+ARGS  ARG1 detProcessedImfile.det_id=$detProcessedExp.det_id
+ARGS  ARG1 detProcessedImfile.exp_id=$detProcessedExp.exp_id
 ARGS  ARG1 camera=$rawExp.camera
 ARGS  ARG1 basename=$detProcessedExp.path_base
Index: trunk/ippMonitor/def/detProcessedImfile.d
===================================================================
--- trunk/ippMonitor/def/detProcessedImfile.d	(revision 14113)
+++ trunk/ippMonitor/def/detProcessedImfile.d	(revision 14128)
@@ -5,5 +5,5 @@
 
 # the following WHERE clauses are added to all queries joined by AND
-WHERE detResidExp.exp_id = rawExp.exp_id
+WHERE detProcessedImfile.exp_id = rawExp.exp_id
 
 #     field                             size   name      show   link to     extras
Index: trunk/ippMonitor/raw/getimage.php
===================================================================
--- trunk/ippMonitor/raw/getimage.php	(revision 14113)
+++ trunk/ippMonitor/raw/getimage.php	(revision 14128)
@@ -2,9 +2,12 @@
 
 $debug = 0;
+include 'site.php';
+
+// these are defined by site.php
+// global $PERLLIB;
+// global $BINDIR;
+// global $SITE;
 
 ### these need to be set to the correct locations!!
-$PERLLIB = "/home/kiawe/eugene/psconfig/dev.linux/lib";
-$BINDIR = "/home/kiawe/eugene/psconfig/dev.linux/bin";
-$SITE = "/home/kiawe/eugene/.ipprc";
 $MISSING = "missing.png";
 
Index: trunk/ippMonitor/raw/ipp.php
===================================================================
--- trunk/ippMonitor/raw/ipp.php	(revision 14113)
+++ trunk/ippMonitor/raw/ipp.php	(revision 14128)
@@ -486,5 +486,5 @@
 
     // be careful of the definition of PATH in SITE: cannot contain HOME
-    // echo "<br>ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>\n";
+    echo "<br>ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>\n";
     exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status);
 
@@ -502,5 +502,5 @@
     $filename = $output[0];
     if ($status) {
-      echo "log file not found<br>\n";
+      echo "log file ($filerule, $basename) not found<br>\n";
       return;
     }
