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/register.pro

    r14681 r14693  
    145145
    146146    # EXP_TAG is used to generate the unique, but human-readable, filenames
    147     $EXP_TAG = $TMP_EXP_NAME.$EXP_ID
     147    sprintf EXP_TAG "%s.%s" $TMP_EXP_NAME $EXP_ID
    148148
    149149    # specify choice of remote host
     
    156156    ## generate output log based on filerule XXX put this in a function?
    157157    $outroot = `ipp_datapath.pl $WORKDIR`
    158     $outroot = $outroot/$EXP_TAG
    159     $logfile = $outroot/reg.$TMP_CLASS_ID.log
     158    sprintf outroot "%s/%s" $outroot $EXP_TAG
     159    sprintf logfile "%s/reg.%s.log" $outroot $TMP_CLASS_ID
    160160    stdout $logfile
    161161    stderr $logfile
     
    256256
    257257    # EXP_TAG is used to generate the unique, but human-readable, filenames
    258     $EXP_TAG = $TMP_EXP_NAME.$EXP_ID
     258    sprintf EXP_TAG "%s.%s" $TMP_EXP_NAME $EXP_ID
    259259
    260260    # specify choice of remote host:(need to choose based on chips)
     
    267267    ## generate output log based on filerule
    268268    $outroot = `ipp_datapath.pl $WORKDIR`
    269     $outroot = $outroot/$EXP_TAG
    270     $logfile = $outroot/$EXP_TAG.reg.log
     269    sprintf outroot "%s/%s" $outroot $EXP_TAG
     270    sprintf logfile "%s/%s.reg.log" $outroot $EXP_TAG
    271271    stdout $logfile
    272272    stderr $logfile
Note: See TracChangeset for help on using the changeset viewer.