Re: Exit code for NCL ?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Sep 20 2010 - 10:16:08 MDT

Hi Emilie,

You can use the special "status_exit" procedure to exit with a number. see:

http://www.ncl.ucar.edu/Document/Functions/Built-in/status_exit.shtml

--Mary

On Sep 20, 2010, at 9:00 AM, Emilie Vanvyve wrote:

> Hello,
>
> I was wondering whether the 'ncl' command returns an exit code of some kind. My main interest is to trap errors when I run a script in batch mode a hundred times with different parameters (distinct calls to 'ncl' each time). As far as I can see, '$?' (from a command line) can be 0 whether or not an error occurred and I cannot distinguish any consistent behaviour in the other '$?' values I obtain (130, 252, etc.) apart from the fact that they are reproducible.
>
> Emilie
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Sep 20 10:16:13 2010

This archive was generated by hypermail 2.1.8 : Mon Sep 20 2010 - 15:45:07 MDT