Index: trunk/ippMonitor/raw/getimage.php
===================================================================
--- trunk/ippMonitor/raw/getimage.php	(revision 28043)
+++ trunk/ippMonitor/raw/getimage.php	(revision 28654)
@@ -11,4 +11,5 @@
 // global $PSCONFIG
 
+
 ### these need to be set to the correct locations!!
 $MISSING = "missing.png";
@@ -20,5 +21,4 @@
 }
 
-
 putenv("PSCONFDIR=$PSCONFDIR");
 putenv("PSCONFIG=$PSCONFIG");
@@ -28,8 +28,10 @@
 
 if ($debug) {
+  echo "DEBUG1<br>";
   echo "args: $args<br>";
   echo "path: $PATH<br>";
   echo "perl: $PERLLIB<br>";
   echo "bindir: $BINDIR<br>";
+  echo "site=$SITE<br>\n";
 }
 
@@ -43,4 +45,5 @@
 
 if ($debug) {
+  echo "DEBUG2<br>";
   echo "basename: $basename<br>";
   echo "filerule: $filerule<br>";
@@ -64,6 +67,8 @@
 
 if ($debug) {
-  exec ("which ipp_filename.pl", $output, $status);
-  echo "which ipp_filename.pl output:<br>";
+  echo "DEBUG3<br>";
+  $output = array();
+  exec ("which $BINDIR/ipp_filename.pl", $output, $status);
+  echo "which $BINDIR/ipp_filename.pl output:<br>";
   for ($i = 0; $i < count($output); $i++) {
     echo "output $i: $output[$i]<br>";
@@ -71,4 +76,5 @@
   echo "status:   $status<br>";
 
+  $output = array();
   exec ("whoami", $output, $status);
   echo "which whoami output:<br>";
@@ -79,5 +85,7 @@
 }
 
-exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status);
+/* --site=$SITE */
+$output = array();
+exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id 2> /tmp/errors", $output, $status);
 
 # use these to check the environment
@@ -91,9 +99,10 @@
 
 if ($debug) {
+  echo "DEBUG4<br>";
+  echo "Command = ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>\n";
   echo "basename: $basename<br>";
   for ($i = 0; $i < count($output); $i++) {
     echo "output $i: $output[$i]<br>";
   }
-  echo "output:   $output[0]<br>";
   echo "status:   $status<br>";
   echo "filename: $filename<br>";
