Quit when an error occurs
Charles Seman
Charles.Seman at NOAA.GOV
Wed Aug 9 16:43:56 EDT 2006
Marcus,
I'm not sure if I understand your question?
Here's a way to quit a GrADS script, depending on whether you're in
batch mode... When running in batch mode, you can supply the parameters
to the script which you would otherwise type in after being prompted in
an interactive run (I hope this makes sense?)... the "if-then" test on
"batch_mode" would also be used to determine whether to parse out the
"args" parameters...
---
function basic (args)
'reinit'
if( args = '' )
...
batch_mode = 'no'
else
...
batch_mode = 'yes'
endif
...
if( batch_mode = 'yes' )
quit
endif
return
I hope this helps,
Chuck
---
Marcus Carvalho wrote:
> Does anybody knows if there's a way to exit the GrADS process when an
> error occurs in batch mode?!
>
> On 7/18/06, *Marcus Carvalho* < marcuswac at gmail.com
> <mailto:marcuswac at gmail.com>> wrote:
>
> Hi...
> I've got some Grads scripts that are executed daily in my system
> automaticaly. But, when an error occurs, the execution stops and
> stays blocked, waiting someone to type something in the command
> line. As I'm running in batch mode, I've got to kill the proccess
> to exit Grads.
> Is there any way to 'exit' Grads automaticaly when an fatal error
> occurs?
>
> Thanks,
>
> Marcus Carvalho.
>
>
--
Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.
********************************************************************
Charles Seman Charles.Seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."
More information about the gradsusr
mailing list