IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2010, 5:06:44 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Summary images for warpStageExp, stackSummary and diffSummary. generate script can now use OP values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/getimage.php

    r28043 r28654  
    1111// global $PSCONFIG
    1212
     13
    1314### these need to be set to the correct locations!!
    1415$MISSING = "missing.png";
     
    2021}
    2122
    22 
    2323putenv("PSCONFDIR=$PSCONFDIR");
    2424putenv("PSCONFIG=$PSCONFIG");
     
    2828
    2929if ($debug) {
     30  echo "DEBUG1<br>";
    3031  echo "args: $args<br>";
    3132  echo "path: $PATH<br>";
    3233  echo "perl: $PERLLIB<br>";
    3334  echo "bindir: $BINDIR<br>";
     35  echo "site=$SITE<br>\n";
    3436}
    3537
     
    4345
    4446if ($debug) {
     47  echo "DEBUG2<br>";
    4548  echo "basename: $basename<br>";
    4649  echo "filerule: $filerule<br>";
     
    6467
    6568if ($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>";
    6873  for ($i = 0; $i < count($output); $i++) {
    6974    echo "output $i: $output[$i]<br>";
     
    7176  echo "status:   $status<br>";
    7277
     78  $output = array();
    7379  exec ("whoami", $output, $status);
    7480  echo "which whoami output:<br>";
     
    7985}
    8086
    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();
     89exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id 2> /tmp/errors", $output, $status);
    8290
    8391# use these to check the environment
     
    9199
    92100if ($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";
    93103  echo "basename: $basename<br>";
    94104  for ($i = 0; $i < count($output); $i++) {
    95105    echo "output $i: $output[$i]<br>";
    96106  }
    97   echo "output:   $output[0]<br>";
    98107  echo "status:   $status<br>";
    99108  echo "filename: $filename<br>";
Note: See TracChangeset for help on using the changeset viewer.