IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2007, 1:09:39 PM (19 years ago)
Author:
Paul Price
Message:

Changing set_standard_args to employ a filtering approach --- it supplements the command-line instead of providing something that gets added on. Needed to do this because wanted the arguments it provides to be optional, and it really doesn't like to have a zero length string as an argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/register.pro

    r12361 r12697  
    142142    book getword regPendingImfile $pageName workdir -var WORKDIR
    143143    book getword regPendingImfile $pageName dbname -var DBNAME
    144     set_standard_args
    145144
    146145    # specify choice of remote host
     
    162161    options $pageName
    163162
     163    $run = register_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI
     164    add_standard_args run
     165
    164166    # create the command line
    165167    if ($VERBOSE > 1)
    166       echo command register_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI $ARGS
    167     end
    168     command register_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI $ARGS
     168      echo command $run
     169    end
     170    command $run
    169171  end
    170172
     
    247249    book getword regPendingExp $pageName workdir -var WORKDIR
    248250    book getword regPendingExp $pageName dbname -var DBNAME
    249     set_standard_args
    250251
    251252    # specify choice of remote host:(need to choose based on chips)
     
    267268    options $pageName
    268269
     270    $run = register_exp.pl --exp_tag $EXP_TAG
     271    add_standard_args run
     272
    269273    # create the command line
    270274    if ($VERBOSE > 1)
    271       echo command register_exp.pl --exp_tag $EXP_TAG $ARGS
    272     end
    273     command register_exp.pl --exp_tag $EXP_TAG $ARGS
     275      echo command $run
     276    end
     277    command $run
    274278  end
    275279
Note: See TracChangeset for help on using the changeset viewer.