[GRASS-user] how to supress warnings ???

Martin Landa landa.martin at gmail.com
Sun Jan 27 08:03:40 EST 2008


Hi,

2008/1/27, Patrick Giraudoux <patrick.giraudoux at univ-fcomte.fr>:
> I am using some functions in a loop and would like to suppress warnings
> such as:
>
> WARNING: Vector map <essaisV> already exists and will be overwritten
>
> In this case the call that trigger the warning is:
>
>  v.extract -t in=$vector out=essaisV list=$count type=point --o --q #
> point extraction

redirect stderr to /dev/null, e.g.

v.extract -t in=$vector out=essaisV list=$count type=point --o --q 2>/dev/null

Regards, Martin

-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-user mailing list