IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2007, 1:42:40 PM (19 years ago)
Author:
eugene
Message:

unifying, cleaning logfile output names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.stack.pro

    r12697 r13683  
    134134
    135135    if ("$WORKDIR" == "NULL")
    136       $outroot = `pwd`
     136      $outpath = `pwd`
    137137    else
    138       $outroot = `ipp_datapath.pl $WORKDIR`
     138      $outpath = `ipp_datapath.pl $WORKDIR`
    139139    end
    140     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
    141     $logfile = $outroot/detstack.$DET_ID.$ITERATION.$CLASS_ID.log
     140    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID
     141    $outroot = $outpath/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION
     142    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     143    if ("$logfile" == "")
     144      $logfile = $outroot.$CLASS_ID.log
     145    end
     146
    142147    stdout $logfile
    143148    stderr $logfile
    144     exec mkdir -p $outroot
     149    exec mkdir -p $outpath
    145150
    146151    # save the pageName for future reference below
Note: See TracChangeset for help on using the changeset viewer.