<div dir="ltr">Oh yes, of course I could use the sql= option... I just overlooked that after moving<div>from GRASS6.5 where this option is not yet existing. Thank you ...</div><div><br></div><div>/Johannes</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 12:47 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
Johannes Radinger wrote:<br>
<br>
> Thank you Hamish, including the option "input=-" in the python line (for<br>
> GRASS7) solved the problem.<br>
<br>
</div>Why read the command from stdin rather than using sql=...? E.g.:<br>
<br>
grass.write_command("db.execute", sql = "UPDATE my points SET prob=100")<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br></div>