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

Patrick Giraudoux patrick.giraudoux at univ-fcomte.fr
Sun Jan 27 08:19:19 EST 2008


Martin Landa a écrit :
> 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
>
>   
When I do this in the script:

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

executing the programme, I get:

/home/giraudoux/grassprog/r.what.vbuff: 157: cannot create /dev/null#: 
Permission denied

Cheers,

Patrick






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080127/88d3e4cf/attachment-0001.html


More information about the grass-user mailing list