how do I make ncl abort on fatal errors

From: Keith Lindsay <klindsay_at_nyahnyahspammersnyahnyah>
Date: Tue, 21 Apr 2009 09:23:16 -0600 (MDT)


I'm trying to use the techique described in the thread
"" to catch
errors in an ncl script. That is, before calling ncl, I'm creating a
sentinel file and the last ncl command removes it. If the files exists
after ncl is done, I conclude that ncl aborted.

However, ncl, version 5.1.0, is not aborting on fatal errors. So the ncl
script is always executing the command to remove the sentinel file. I've
attached a csh script that opens a non-existent file and reads from it a
non-existent variable. ncl reports multiple fatal errors, but proceeds,
and does remove the sentinel file.

How do I make ncl abort on fatal errors?

Thanks, Keith

Keith Lindsay      
email:   phone: 303-497-1722   fax: 303-497-1700

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Tue Apr 21 2009 - 09:23:16 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 21 2009 - 11:04:41 MDT