Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


If variable "VAR" is not found, then we use a default value of "value"
Clever use of variables can, however, save a lot of work. For example you can use the same script in multiple places, but configure it to behave differently depending on the variable set.

ECFTRIES and ECFTRYNO

If you have set ECFTRIES in your definition file to be greater than one then your task will automatically rerun on an abort. You can then use the ecFlow variable ECF_TRYNO to modify the behaviour of your tasks dependant on the try number, e.g.

Code Block
#QSUB -o %ECFBASE%/log%ECFNAME%.%ECF_TRYNO% 
if [ %ECF_TRYNO% -gt 1 ] ; then
   DEBUG=yes
else
   DEBUG=no
fi