ncl in c-shell script; exit if ncl script fails

From: Bob Tomas <tomas_at_nyahnyahspammersnyahnyah>
Date: Fri, 2 Jun 2006 09:09:56 -0600 (MDT)


I have a c-shell script that does a number of things including running an
ncl script. I'd like to exit the c-shell script if the ncl script doesn't
complete normally. I tried this:

         ncl script_name.ncl || exit 1


         ncl script_name.ncl || exit 1
         if($status != 0) then
            exit 1

but these methods don't work. Is there some other way to simply do what
I want?



Robert A. Tomas
National Center for Atmospheric Research
Climate and Global Dynamics Division - Paleoclimatology
1850 Table Mesa Drive
Boulder, CO 80305-3000
e-mail:  tel: 303-497-1342  fax:  303-497-1348
ncl-talk mailing list
Received on Fri Jun 02 2006 - 09:09:56 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 08 2006 - 13:18:38 MDT