IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30820


Ignore:
Timestamp:
Mar 7, 2011, 11:09:15 AM (15 years ago)
Author:
bills
Message:

redirect stdout to NULL and pass logfile name to pstamp_checkdependent.pl

Location:
tags/ipp-20110218
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20110218/ippTasks/pstamp.pro

    r30795 r30820  
    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
  • tags/ipp-20110218/pstamp/scripts/pstamp_checkdependent.pl

    r30794 r30820  
    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.