IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2007, 3:15:26 PM (19 years ago)
Author:
eugene
Message:

use sprintf to avoid parsing names with numbers and dashes as math expressions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/chip.pro

    r14681 r14693  
    141141      $outpath = `ipp_datapath.pl $WORKDIR`
    142142    end
    143     $outpath = $outpath/$EXP_TAG
    144     $outroot = $outpath/$EXP_TAG.ch.$CHIP_ID
     143    sprintf outpath "%s/%s" $outpath $EXP_TAG
     144    sprintf outroot "%s/%s.ch.%s" $outpath $EXP_TAG $CHIP_ID
    145145    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    146146    if ("$logfile" == "")
    147       $logfile = $outroot.$CLASS_ID.log
     147      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
    148148    end
    149149
Note: See TracChangeset for help on using the changeset viewer.