Changeset 28654 for trunk/ippMonitor/raw/getimage.php
- Timestamp:
- Jul 9, 2010, 5:06:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/getimage.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/getimage.php
r28043 r28654 11 11 // global $PSCONFIG 12 12 13 13 14 ### these need to be set to the correct locations!! 14 15 $MISSING = "missing.png"; … … 20 21 } 21 22 22 23 23 putenv("PSCONFDIR=$PSCONFDIR"); 24 24 putenv("PSCONFIG=$PSCONFIG"); … … 28 28 29 29 if ($debug) { 30 echo "DEBUG1<br>"; 30 31 echo "args: $args<br>"; 31 32 echo "path: $PATH<br>"; 32 33 echo "perl: $PERLLIB<br>"; 33 34 echo "bindir: $BINDIR<br>"; 35 echo "site=$SITE<br>\n"; 34 36 } 35 37 … … 43 45 44 46 if ($debug) { 47 echo "DEBUG2<br>"; 45 48 echo "basename: $basename<br>"; 46 49 echo "filerule: $filerule<br>"; … … 64 67 65 68 if ($debug) { 66 exec ("which ipp_filename.pl", $output, $status); 67 echo "which ipp_filename.pl output:<br>"; 69 echo "DEBUG3<br>"; 70 $output = array(); 71 exec ("which $BINDIR/ipp_filename.pl", $output, $status); 72 echo "which $BINDIR/ipp_filename.pl output:<br>"; 68 73 for ($i = 0; $i < count($output); $i++) { 69 74 echo "output $i: $output[$i]<br>"; … … 71 76 echo "status: $status<br>"; 72 77 78 $output = array(); 73 79 exec ("whoami", $output, $status); 74 80 echo "which whoami output:<br>"; … … 79 85 } 80 86 81 exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status); 87 /* --site=$SITE */ 88 $output = array(); 89 exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id 2> /tmp/errors", $output, $status); 82 90 83 91 # use these to check the environment … … 91 99 92 100 if ($debug) { 101 echo "DEBUG4<br>"; 102 echo "Command = ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id<br>\n"; 93 103 echo "basename: $basename<br>"; 94 104 for ($i = 0; $i < count($output); $i++) { 95 105 echo "output $i: $output[$i]<br>"; 96 106 } 97 echo "output: $output[0]<br>";98 107 echo "status: $status<br>"; 99 108 echo "filename: $filename<br>";
Note:
See TracChangeset
for help on using the changeset viewer.
