Changeset 16306
- Timestamp:
- Feb 4, 2008, 6:59:30 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/pantasks.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pantasks.pro
r16298 r16306 24 24 $DB:n = 0 25 25 26 if ($NEBULOUS) 27 $default_host = anyhost 28 $default_volume = none 29 # $default_host = ipp004 30 # $workdir_template = neb:///@HOST@-v0 31 # $default_volume = ipp004-v0 32 # $volume_template = 33 else 34 $default_host = anyhost 35 end 26 # very basic values: set these with init.copy.mhpcc 27 $default_host = anyhost 28 $workdir_template = `pwd` 36 29 37 30 # user function to add databases by name (avoids duplicates) … … 69 62 end 70 63 71 ### XXX There is a bug in the below "list DB -del $1" line. 72 echo "This function doesn't work" 73 # list DB -del $1 64 list DB -del $1 74 65 end 75 66 76 67 macro init.cluster.po 77 $ parallel= 168 $PARALLEL = 1 78 69 controller exit true 79 70 … … 107 98 108 99 macro init.cluster.sn 109 $ parallel= 1100 $PARALLEL = 1 110 101 controller exit true 111 102 controller host add sn2 … … 123 114 end 124 115 116 macro init.cluster.mhpcc 117 $PARALLEL = 1 118 controller exit true 119 controller host add ipp005 120 controller host add ipp006 121 controller host add ipp007 122 controller host add ipp008 123 controller host add ipp009 124 controller host add ipp010 125 controller host add ipp011 126 controller host add ipp016 127 controller host add ipp020 128 controller host add ipp021 129 end 130 131 macro init.copy.mhpcc 132 if ($0 != 2) 133 echo "USAGE: init.copy.mhpcc (nebulous)" 134 echo "nebulous may be 'on' or 'off'" 135 break 136 end 137 138 if (("$1" != "on") && ("$1" != "off")) 139 echo "USAGE: init.copy.mhpcc (nebulous)" 140 echo "nebulous may be 'on' or 'off'" 141 break 142 end 143 144 # the templates are used if we have a class_id/host relationship; 145 # if none is found, the default values are used 146 # XXX not sure how to handle the .N value if we need to use more than one 147 # XXX this stuff should all be placed in a 'site' config file 148 149 if ("$1" == "on") 150 $NEBULOUS = 1 151 $default_host = ipp004 152 $workdir_template = neb://@HOST@.0 153 else 154 $NEBULOUS = 0 155 $default_host = ipp004 156 $workdir_template = /data/@HOST@.0 157 end 158 end 159 125 160 macro init.simtest.local 126 161 list DB -add simtest 127 $ parallel= 0162 $PARALLEL = 0 128 163 controller exit true 129 164 end … … 131 166 macro init.simtest.default.db 132 167 $host = `hostname` 133 if ($ parallel)168 if ($PARALLEL) 134 169 controller exit true 135 170 controller host add $host … … 141 176 142 177 $host = `hostname` 143 if ($ parallel)178 if ($PARALLEL) 144 179 controller exit true 145 180 controller host add $host … … 355 390 if ($0 != 6) 356 391 echo "USAGE: set.workdir.by.camera (camera) (class_id) (template) (default) (varname)" 357 echo " uses global variable NEBULOUS to determine if nebulous is active"358 392 break 359 393 end … … 412 446 end 413 447 414 if (not($ parallel))448 if (not($PARALLEL)) 415 449 host local 416 450 return … … 427 461 end 428 462 463 macro load.chiphost.table 464 queueload tmp -x "cat $MODULES:0/chiphosts.config" 465 ipptool2book tmp chiphosts -key camera 466 end 467 429 468 macro check.globals 430 469 if ($?NETWORK == 0)
Note:
See TracChangeset
for help on using the changeset viewer.
