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)

Hello

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

and

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

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

Thanks.

Bob

-- 
-------------------------------------------------------------
Robert A. Tomas
National Center for Atmospheric Research
Climate and Global Dynamics Division - Paleoclimatology
1850 Table Mesa Drive
Boulder, CO 80305-3000
e-mail: tomas_at_ucar.edu  tel: 303-497-1342  fax:  303-497-1348
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
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