[GRASSLIST:812] Re: bash scripts don't wait for grass

Hamish hamish_nospam at yahoo.com
Sat Apr 22 02:34:50 EDT 2006


> One really sore spot is the fact that Windows cannot redirect
> the stderr output. The CygWin console suffers from the same
> defficiency. If you have a module that tries to redirect
> its stderr to a file, e.g. for hiding status messages, you
> will get a total mess!
> 
> I ran into the same problem a while ago and found no solution
> other than this:
> 
> Disable all sorts of message hiding, quiet options etc. in
> the modules causing problems and make them dump there full
> verbose output to the console. This is the only place where
> stderr does not make a mess in Windows.


fyi, for messages coming from G_warning() have a look at
G_suppress_warnings() and G_set_error_routine() in lib/gis/error.c


Hamish




More information about the grass-user mailing list