Re: catching fatal errors in ncl

From: Jamie Scott <James.D.Scott_at_nyahnyahspammersnyahnyah>
Date: Tue, 21 Apr 2009 10:31:24 -0600


Here is a way to make the csh script abort if NCL reports a fatal
error. I've used this method when running multiple ncl scripts that
depend on each other's proper completion.
Does this help?


On Apr 21, 2009, at 9:43 AM, wrote:

> Hi,
> 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

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Apr 21 2009 - 10:31:24 MDT

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