next up previous contents
Next: Running a UNIX command Up: Miscellaneous commands Previous: Command echo and messaging

Error tolerance

 

stop Do we stop command file execution if we encounter errors?
-off | do not stop execution
-on stop execution at first encountered error (default)

This command can be used to make NDA tolerant to insignificant errors while executing command scripts. If stop is set to off, command file execution continues even if errors are encountered.

Without any parameters stop halts the execution of current command file.

Example: Disable stop on errors due to an old-fashioned script that does not perform all the needed verifications.

@echo -off
stop -off
rm -ref clsel    # if should be used to check whether clsel exists or not
select clsel -cl cl1.neuron_$1
...
stop -on
echo -on



Anssi Lensu
Wed Oct 6 12:57:48 EET DST 1999