[GRASS5] -q flag for r.cats and other commands

Markus Neteler neteler at itc.it
Mon Jul 22 10:01:45 EDT 2002


On Wed, Jul 17, 2002 at 11:57:38PM +0100, Glynn Clements wrote:
> 
> John A. Preston wrote:
> 
> > I'm using grass via some java servlets and recently found out that
> > any G_percent() messages and others are sent to the stderr
> > (thanks to Glyn Clements).
> > 
> > While I have been able to program around this,
> > It makes my use of stderr a bit messy. I trap
> > all stderr messages and display them in a error log
> > (in RED). However now I have to modify this, and 
> > try and determine which of them is a activity message
> > and which is a real GRASS command error or warning message.
> > 
> > Has there been any discussion on a standard syntax
> > for error and warning message (prefixed with ERROR 
> > or WARNING, maybe) or on this whole topic.

[...]
> However, some programs simply print messages to stderr (or even
> stdout). Markus recently cleaned up the error handling in a number of
> modules, but I don't expect that he will have fixed all of them.
[...]

find . -type f -name '*.c' -exec grep printf {} \; |grep ERROR | wc -l
    442

quite a few entries...

 Markus



More information about the grass-dev mailing list