IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 4, 2008, 2:18:44 PM (18 years ago)
Author:
eugene
Message:

new macro to test presence of required globals; change globals to upper case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/summit.copy.pro

    r16208 r16298  
     1## summit.copy.pro : tasks for the summit to IPP download : -*- sh -*-
    12## PanTasks scripts for Summit Copy
    2 
    3 module pantasks.pro
    43
    54# pztool -adddatastore -inst isp -telescope ps1 -uri http://otis1.ifa.hawaii.edu/ds/skyprobe/index.txt
     
    1615# @HOST@ may be substituted in later scripts.
    1716
     17# test for required global variables
     18check.globals
     19
    1820# the templates are used if we have a class_id/host relationship; if none is found, the default values are used
    1921# XXX not sure how to handle the .N value if we need to use more than one
     
    2123if ($NEBULOUS)
    2224 $default_host     = ipp004
    23  $workdir_template = neb:///@HOST@-v0
    24  $default_volume   = ipp004-v0
    25  $volume_template  =
     25 $workdir_template = neb:///@HOST@.0
    2626else
    2727 $default_host     = ipp004
    2828 $workdir_template = /data/@HOST@.0/
    29 end
    30 
    31 $VERBOSE = 1
    32 
    33 if ($?network == 0)
    34   $network = 1
    35 end
    36 if ($?parallel == 0)
    37   $parallel = 0
    3829end
    3930
     
    162153
    163154    task.exec
    164         if ($network == 0) break
     155        if ($NETWORK == 0) break
    165156
    166157        # if we are waiting on data, make the interval long
     
    254245
    255246    task.exec
    256         if ($network == 0) break
     247        if ($NETWORK == 0) break
    257248
    258249        # if we are waiting on data, make the interval long
Note: See TracChangeset for help on using the changeset viewer.