[GRASS-user] turning grass.commands quiet

Dear all,

Is there a way of the grass commands not send any messages while running?

I tryed g.gisenv set=“DEBUG=0” but I would like none messages during command execute.

thanks

Miltinho - mcr@rc.unesp.br
Laboratório de Ecologia Espacial e Conservação - LEEC
Depto de Ecologia - UNESP - Rio Claro
Av. 24A, 1515- Bela Vista
13506-900 Rio Claro, SP, Brasil

Fone: +55 19 3526-9647 (office) 19 3526-9680 (lab)
Cel: 19 9853-3220 / 19 9853-5430

Depto Ecologia http://ib.rc.unesp.br/#!/departamentos/ecologia/
PG ECO & BIODIV http://ib.rc.unesp.br/#!/departamentos/ecologia/pos-graduacao-em-ecologia-e-biodiversidade/

CV http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4792988H6&mostrarNroCitacoesISI=true&mostrarNroCitacoesScopus=true

Google citations http://scholar.google.com/citations?user=OWX_2eAAAAAJ

Hi,

2014-07-02 3:50 GMT+02:00 Milton Ribeiro <miltinho.astronauta@gmail.com>:

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).

bash:

export GRASS_VERBOSE=0

python:

os.environ['GRASS_VERBOSE'] = '0'

I tryed g.gisenv set="DEBUG=0" but I would like none messages during command
execute.

GRASS variable DEBUG controls just debug messages. Martin

--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa

On 02/07/14 13:04, Martin Landa wrote:

Hi,

2014-07-02 3:50 GMT+02:00 Milton Ribeiro <miltinho.astronauta@gmail.com>:

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).

bash:

export GRASS_VERBOSE=0

python:

os.environ['GRASS_VERBOSE'] = '0'

I tryed g.gisenv set="DEBUG=0" but I would like none messages during command
execute.

GRASS variable DEBUG controls just debug messages. Martin

Or use the --quiet parameter.

Moritz

Thanks Moritz and Martin

best

milton

···

2014-07-02 12:25 GMT-03:00 Moritz Lennert <mlennert@club.worldonline.be>:

On 02/07/14 13:04, Martin Landa wrote:

Hi,

2014-07-02 3:50 GMT+02:00 Milton Ribeiro <miltinho.astronauta@gmail.com>:

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).

bash:

export GRASS_VERBOSE=0

python:

os.environ[‘GRASS_VERBOSE’] = ‘0’

I tryed g.gisenv set=“DEBUG=0” but I would like none messages during command
execute.

GRASS variable DEBUG controls just debug messages. Martin

Or use the --quiet parameter.

Moritz


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Miltinho - mcr@rc.unesp.br
Laboratório de Ecologia Espacial e Conservação - LEEC
Depto de Ecologia - UNESP - Rio Claro
Av. 24A, 1515- Bela Vista
13506-900 Rio Claro, SP, Brasil

Fone: +55 19 3526-9647 (office) 19 3526-9680 (lab)
Cel: 19 9853-3220 / 19 9853-5430

Depto Ecologia http://ib.rc.unesp.br/#!/departamentos/ecologia/
PG ECO & BIODIV http://ib.rc.unesp.br/#!/departamentos/ecologia/pos-graduacao-em-ecologia-e-biodiversidade/

CV http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4792988H6&mostrarNroCitacoesISI=true&mostrarNroCitacoesScopus=true

Google citations http://scholar.google.com/citations?user=OWX_2eAAAAAJ

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@gclements.plus.com>