IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2007, 10:48:44 AM (19 years ago)
Author:
eugene
Message:

fix problem with local jobs using set_standard_args

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r11476 r11485  
    4949end
    5050
     51macro init.simtest.local
     52  $LOGDIR = `ipp_datapath.pl path://SIMTEST`
     53  $LOGDIR = $LOGDIR/logs
     54  exec mkdir -p $LOGDIR
     55  $parallel = 0
     56end
     57
    5158macro init.simtest.defDB
    5259  $LOGDIR = `ipp_datapath.pl path://SIMTEST`
     
    6976  if ($parallel)
    7077    controller exit true
    71     controller host add mithrandir
     78    echo "add your local host with"
     79    echo "controller host add (localhost)"
    7280  end
    7381end
     
    171179
    172180macro set_standard_args
    173   $ARGS = ""
     181  # XXX be careful: $ARGS cannot be resolved as ""
     182  # XXX currently, sprintf is the only good way of creating
     183  # an empty variable
     184  if ($?WORKDIR == 0)
     185    echo error in pantasks: WORKDIR not set
     186    stop
     187  end
     188  if ($?DBNAME == 0)
     189    echo error in pantasks: DBNAME not set
     190    stop
     191  end
    174192  if ("$DBNAME" != "DEFAULT")
    175     $ARGS = $ARGS --dbname $DBNAME
    176   end
    177   if ("$WORKDIR" != "")
    178     $ARGS = $ARGS --workdir $WORKDIR
     193    $ARGS = --workdir $WORKDIR --dbname $DBNAME
    179194  else
    180     echo WORKDIR not set
     195    $ARGS = --workdir $WORKDIR
    181196  end
    182197end
     
    192207  $exitCode = $3
    193208
     209  if ($VERBOSE > 4)
     210    echo "*** stdout ***"
     211    queueprint stdout
     212    echo "*** stderr ***"
     213    queueprint stderr
     214    echo "JOB_STATUS: $JOB_STATUS"
     215  end
     216
    194217  # success
    195218  if ($exitCode == $EXIT_SUCCESS)
Note: See TracChangeset for help on using the changeset viewer.