Changeset 11323 for trunk/ippTasks/phase0.pro
- Timestamp:
- Jan 26, 2007, 1:39:42 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/phase0.pro (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/phase0.pro
r11236 r11323 28 28 end 29 29 30 $phase0_DB = 0 30 # these variables will cycle through the known database names 31 $p0PendingImfile_DB = 0 32 $p0PendingExp_DB = 0 31 33 32 34 # select images ready for phase0 analysis … … 39 41 periods -exec $loadexec 40 42 periods -timeout 30 41 42 # XXX test that this option works 43 # npending 1 43 npending 1 44 44 45 45 # silently drop stdout … … 48 48 49 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 .ipprc50 # iff the DB list is not set, use the value defined in .ipprc 51 51 task.exec 52 52 if ($DB:n == 0) 53 option DEFAULT 53 54 command p0tool -pendingimfile -limit 20 54 55 else 55 command p0tool -pendingimfile -limit 20 -dbname $DB:$phase0_DB 56 $phase0_DB ++ 57 if ($phase0_DB >= $DB:n) set phase0_DB = 0 56 # save the DB name for the exit tasks 57 option $DB:$p0PendingImfile_DB 58 command p0tool -pendingimfile -limit 20 -dbname $DB:$p0PendingImfile_DB 59 $p0PendingImfile_DB ++ 60 if ($p0PendingImfile_DB >= $DB:n) set p0PendingImfile_DB = 0 58 61 end 59 62 end … … 62 65 task.exit $EXIT_SUCCESS 63 66 # convert 'stdout' to book format 64 ipptool2book stdout p0PendingImfile -key exp_tag -uniq 67 ipptool2book stdout p0PendingImfile -key exp_tag -uniq -setword dbname $options:0 65 68 if ($VERBOSE > 2) 66 69 book listbook p0PendingImfile … … 105 108 book getword p0PendingImfile $pageName uri -var URI 106 109 book getword p0PendingImfile $pageName workdir -var WORKDIR 107 # book getword p0PendingImfile $pageName dbname -var DBNAME 110 book getword p0PendingImfile $pageName dbname -var DBNAME 111 set_standard_args 108 112 109 113 # specify choice of remote host … … 114 118 end 115 119 116 ## generate output log based on filerule 120 ## generate output log based on filerule XXX put this in a function? 117 121 $outroot = $WORKDIR/$EXP_TAG 118 122 $logfile = `ipp_filename.pl PHASE0.LOG $outroot $CLASS_ID` … … 126 130 # create the command line 127 131 if ($VERBOSE > 1) 128 echo command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 129 end 130 command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 132 echo command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI $ARGS 133 end 134 command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI $ARGS 131 135 end 132 136 … … 155 159 156 160 task.exec 157 command p0tool -pendingexp -limit 20 161 if ($DB:n == 0) 162 option DEFAULT 163 command p0tool -pendingexp -limit 20 164 else 165 # save the DB name for the exit tasks 166 option $DB:$p0PendingExp_DB 167 command p0tool -pendingexp -limit 20 -dbname $DB:$p0PendingExp_DB 168 $p0PendingExp_DB ++ 169 if ($p0PendingExp_DB >= $DB:n) set p0PendingExp_DB = 0 170 end 158 171 end 159 172 160 173 # success 161 task.exit 0174 task.exit $EXIT_SUCCESS 162 175 # convert 'stdout' to book format 163 ipptool2book stdout p0PendingExp -key exp_tag -uniq 176 ipptool2book stdout p0PendingExp -key exp_tag -uniq -setword dbname $options:0 164 177 if ($VERBOSE > 2) 165 178 book listbook p0PendingExp … … 200 213 book getword p0PendingExp $pageName exp_tag -var EXP_TAG 201 214 book getword p0PendingExp $pageName workdir -var WORKDIR 215 book getword p0PendingExp $pageName dbname -var DBNAME 216 set_standard_args 202 217 203 218 # specify choice of remote host:(need to choose based on chips) … … 220 235 # create the command line 221 236 if ($VERBOSE > 1) 222 echo command phase0_exp.pl --exp_tag $EXP_TAG 223 end 224 command phase0_exp.pl --exp_tag $EXP_TAG 237 echo command phase0_exp.pl --exp_tag $EXP_TAG $ARGS 238 end 239 command phase0_exp.pl --exp_tag $EXP_TAG $ARGS 225 240 end 226 241
Note:
See TracChangeset
for help on using the changeset viewer.
