IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17965


Ignore:
Timestamp:
Jun 6, 2008, 2:29:32 PM (18 years ago)
Author:
bills
Message:

move register.pro to the new logfile scheme

Location:
trunk/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r16570 r17965  
    77$VERBOSE = 1
    88$LOGDIR = `pwd`
     9$LOGDIR = $LOGDIR/pantasks_logs
    910$KEEP_FAILURES = 0
    1011
  • trunk/ippTasks/register.pro

    r17777 r17965  
    66check.globals
    77
    8 $LOGSUBDIR = $LOGDIR/register
    9 exec mkdir -p $LOGSUBDIR
     8exec mkdir -p $LOGDIR
    109
    1110book init regPendingImfile
     
    6968  # silently drop stdout
    7069  stdout NULL
    71   stderr $LOGSUBDIR/register.imfile.log
     70  stderr $LOGDIR/register.imfile.load.log
    7271
    7372  # select entries from the current DB; cycle to the next DB, if it exists
     
    159158    sprintf logfile "%s/%s/%s.reg.%s.log" $WORKDIR $EXP_TAG $EXP_TAG $TMP_CLASS_ID
    160159
    161     ## generate output log based on filerule (convert the URI to a PATH)
    162     ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
    163     $logfile = `ipp_datapath.pl --touch $logfile`
    164     if ("$logfile" == "")
    165       echo "WARNING: logfile not defined in register.pro:165"
    166       break
    167     end
    168     substr $WORKDIR 0 4 scheme
    169     if ("$scheme" != "neb:")
    170         dirname $logfile -var outpath
    171         mkdir $outpath
    172     end
    173     stdout $logfile
    174     stderr $logfile
    175 
    176     # XXX should this comment be deleted
    177     # add mkdir back here?
    178     # or make part of reigster_imfile.pl?
    179 
    180     $run = register_imfile.pl --exp_id $EXP_ID --tmp_class_id $TMP_CLASS_ID --tmp_exp_name $TMP_EXP_NAME --uri $URI
     160    stdout $LOGDIR/register.imfile.run.log
     161    stderr $LOGDIR/register.imfile.run.log
     162
     163    $run = register_imfile.pl --exp_id $EXP_ID --tmp_class_id $TMP_CLASS_ID --tmp_exp_name $TMP_EXP_NAME --uri $URI --logfile $logfile
    181164    add_standard_args run
    182165
     
    213196
    214197  stdout NULL
    215   stderr $LOGSUBDIR/register.exp.log
     198  stderr $LOGDIR/register.exp.load.log
    216199
    217200  task.exec
     
    292275    sprintf logfile "%s/%s/%s.reg.log" $WORKDIR $EXP_TAG $EXP_TAG
    293276
    294     ## generate output log based on filerule (convert the URI to a PATH)
    295     ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
    296     $logfile = `ipp_datapath.pl --touch $logfile`
    297     if ("$logfile" == "")
    298       echo "WARNING: logfile not defined in register.pro:298"
    299       break
    300     end
    301     substr $WORKDIR 0 4 scheme
    302     if ("$scheme" != "neb:")
    303         dirname $logfile -var outpath
    304         mkdir $outpath
    305     end
    306     stdout $logfile
    307     stderr $logfile
    308 
    309     $run = register_exp.pl --exp_id $EXP_ID --exp_tag $EXP_TAG
     277    stdout $LOGDIR/register.exp.run.log
     278    stderr $LOGDIR/register.exp.run.log
     279
     280    $run = register_exp.pl --exp_id $EXP_ID --exp_tag $EXP_TAG --logfile $logfile
    310281    add_standard_args run
    311282
Note: See TracChangeset for help on using the changeset viewer.