[GRASS-user] Error handling from bash script

Glynn Clements glynn at gclements.plus.com
Fri Mar 30 13:03:29 EDT 2012


Dmitriy Tyugaev wrote:

> Tell me please, is it possible to handle GRASS errors from bash script?

That depends upon what you mean by "handle". A program which
terminates with a fatal error will return a non-zero exit status, so
you can use the command with "if", "||", "&&" etc, or test the value
of "$?".

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list