IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11209


Ignore:
Timestamp:
Jan 19, 2007, 5:23:41 PM (19 years ago)
Author:
eugene
Message:

adding DB selection from list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_00/ippTasks/phase0.pro

    r11110 r11209  
    2727  book listbook p0PendingExp
    2828end
     29
     30$phase0_DB = 0
    2931
    3032# select images ready for phase0 analysis
     
    4547  stderr $LOGSUBDIR/phase0.imfile.log
    4648
    47   task.exec
    48     command p0tool -pendingimfile -limit 20
     49  # select entries from the current DB; cycle to the next DB, if it exists
     50  # if the DB list is not set, use the value defined in .ipprc
     51  task.exec
     52    if ($DB:n == 0)
     53      command p0tool -pendingimfile -limit 20
     54    else
     55      command p0tool -pendingimfile -limit 20 -dbname $DB:$phase0_DB
     56      $phase0_DB ++
     57      if ($phase0_DB >= $DB:n) set phase0_DB = 0
     58    end
    4959  end
    5060
    5161  # success
    52   task.exit    $EXIT_SUCCESS
     62  task.exit $EXIT_SUCCESS
    5363    # convert 'stdout' to book format
    5464    ipptool2book stdout p0PendingImfile -key exp_tag -uniq
     
    95105    book getword p0PendingImfile $pageName uri -var URI
    96106    book getword p0PendingImfile $pageName outpath -var OUTPATH
     107    book getword p0PendingImfile $pageName dbname -var DBNAME
    97108
    98109    # specify choice of remote host
     
    115126    # create the command line
    116127    if ($VERBOSE > 1)
    117       echo command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI
    118     end
    119     command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI
     128      echo command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --dbname $DBNAME
     129    end
     130    command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --dbname $DBNAME
    120131  end
    121132
Note: See TracChangeset for help on using the changeset viewer.