[ncl-talk] determine success of ncl script via bash

Micah Sklut micahs2005 at gmail.com
Thu Nov 12 10:56:52 MST 2020


Hi,

I run a bunch of ncl script operationally in bash scripts. I'd like to be
able to detect if NCL encounters a fatal error. Any suggestions on this?

I've tried this without success:

ncl nam_file.ncl || {
    echo 'failure'
    exit
  }

Thanks.

-- 
Micah Sklut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201112/ee82b092/attachment.html>


More information about the ncl-talk mailing list