[GRASS-user] turning grass.commands quiet

Glynn Clements glynn at gclements.plus.com
Wed Jul 2 16:12:30 PDT 2014


Martin Landa wrote:

> > Is there a way of the grass commands not send any messages while running?
> 
> yes, set up environmental variable GRASS_VERBOSE to 0, or -1 (also
> error messages will suppressed in this case).

In 6.x, errors and warnings are printed regardless of the
GRASS_VERBOSE setting.

> bash:
> 
> export GRASS_VERBOSE=0

Alternatively:

	export GRASS_MESSAGE_FORMAT=silent

will suppress all output, including warnings and errors (these will
still be written to a logfile specified by $GIS_ERROR_LOG or to
~/GIS_ERROR_LOG if that file exists).

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


More information about the grass-user mailing list