<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Martin Landa a écrit :
<blockquote
cite="mid:f8fe65c40801270503u627b4481tad8355cf51b7554f@mail.gmail.com"
type="cite">
<pre wrap="">Hi,
2008/1/27, Patrick Giraudoux <a class="moz-txt-link-rfc2396E" href="mailto:patrick.giraudoux@univ-fcomte.fr"><patrick.giraudoux@univ-fcomte.fr></a>:
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->
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
</pre>
</blockquote>
When I do this in the script:<br>
<br>
v.extract -t in=$vector out=essaisV list=$count type=point --o --q
2>/dev/null# point extraction<br>
<br>
executing the programme, I get:<br>
<br>
/home/giraudoux/grassprog/r.what.vbuff: 157: cannot create /dev/null#:
Permission denied<br>
<br>
Cheers,<br>
<br>
Patrick<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>