IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2007, 1:39:42 PM (19 years ago)
Author:
eugene
Message:

added multi-db support and workdirs to tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r11210 r11323  
    2525$EXIT_DATA_ERR    = 5
    2626
     27# DB lists the database names in use; the default ipprc database
     28# is only used if DB:n is 0
    2729$DB:n = 0
     30
     31macro init.simtest.defDB
     32  $LOGDIR = `ipp_datapath.pl path://SIMTEST`
     33  $LOGDIR = $LOGDIR/logs
     34  exec mkdir -p $LOGDIR
     35
     36  if ($parallel)
     37    controller exit true
     38    controller host add alala
     39  end
     40end
    2841
    2942macro init.simtest
     
    109122end
    110123
     124macro set_standard_args
     125  $ARGS = ""
     126  if ("$DBNAME" != "DEFAULT")
     127    $ARGS = $ARGS --dbname $DBNAME
     128  end
     129  if ("$WORKDIR" != "")
     130    $ARGS = $ARGS --workdir $WORKDIR
     131  else
     132    echo WORKDIR not set
     133  end
     134end
     135
    111136macro process_exit
    112137  if ($0 != 4)
Note: See TracChangeset for help on using the changeset viewer.