IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30799


Ignore:
Timestamp:
Mar 4, 2011, 1:24:06 PM (15 years ago)
Author:
bills
Message:

set stdout to null in task tell pstamp_checkdependent to redirect output

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r30798 r30799  
    717717
    718718        $MYLOGFILE = $OUTDIR/checkdep.$DEP_ID.log
    719         stdout $MYLOGFILE
     719        stdout NULL
    720720        stderr $MYLOGFILE
    721721
    722         $run = pstamp_checkdependent.pl --dep_id $DEP_ID --stage_id $STAGE_ID --stage $STAGE --component $COMPONENT --imagedb $IMAGEDB --rlabel $RLABEL $NEED_MAGIC --fault_count $FAULT_COUNT --max_fault_count $PSTAMP_MAX_FAULT_COUNT
     722        $run = pstamp_checkdependent.pl --dep_id $DEP_ID --stage_id $STAGE_ID --stage $STAGE --component $COMPONENT --imagedb $IMAGEDB --rlabel $RLABEL $NEED_MAGIC --fault_count $FAULT_COUNT --max_fault_count $PSTAMP_MAX_FAULT_COUNT --logfile $MYLOGFILE
    723723
    724724        add_standard_args run
  • trunk/pstamp/scripts/pstamp_checkdependent.pl

    r30742 r30799  
    2727my $IPP_DIFF_MODE_STACK_STACK = 4;
    2828
    29 my ($dep_id, $stage, $stage_id, $component, $imagedb, $rlabel, $need_magic, $fault_count, $max_fault_count);
     29my ($dep_id, $stage, $stage_id, $component, $imagedb, $rlabel, $need_magic, $fault_count, $max_fault_count, $logfile);
    3030my ($dbname, $ps_dbserver, $verbose, $save_temps, $no_update);
    3131
     
    4040    'fault_count=i' =>  \$fault_count,
    4141    'max_fault_count=i' =>  \$max_fault_count,
     42    'logfile=s'     =>  \$logfile,
    4243    'dbname=s'      =>  \$dbname,       # postage stamp server dbname
    4344    'dbserver=s'    =>  \$ps_dbserver,  # postage stamp server dbserver
     
    6768
    6869my $ipprc = PS::IPP::Config->new();
     70
     71if ($logfile) {
     72   $ipprc->redirect_output($logfile);
     73}
    6974
    7075if (!$ps_dbserver) {
Note: See TracChangeset for help on using the changeset viewer.