What I use on scripts is the PNG monitor setting the GRASS_PNGFILE, GRASS_HEIGHT and GRASS_WIDTH before starting the monitor.<br><br>Take a look at the PNG Driver manual pages for more variables: <a href="http://grass.osgeo.org/grass64/manuals/pngdriver.html">http://grass.osgeo.org/grass64/manuals/pngdriver.html</a><br><br><div class="gmail_quote">El lun, 10 de noviembre de 2014 17:42, "Peter Löwe" <<a href="mailto:peter.loewe@gmx.de">peter.loewe@gmx.de</a>> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm trying call up d.out.file from within an add-on Shell-script for GRASS 6.>=4, but keep getting the following error:<br>
ERROR: No such monitor as <GRASS_MONITOR><br>
d.out.file output=test20141110 format=geotiff resolution=1 size=1440,720<br>
ERROR: You must select a display monitor.<br>
<br>
Let's assume that a GRASS monitor has been _started_ and _selected_ (x0, PNG, or similar) in the current GRASS session and some rasters and vectors have been drawn on it. Then, the script is invoked which needs to write out the content of the currently active monitor.<br>
<br>
Up till now neither a simple "export `g.gisenv`" or an explicit re-selecting the monitor via "d.mon select=$THECURRENTMONITOR" within the script improved the situation.<br>
<br>
Hints and suggestions would be greatly appreciated.<br>
<br>
Peter<br>
<<a href="mailto:peter.loewe@gmx.de" target="_blank">peter.loewe@gmx.de</a>><br>
______________________________<u></u>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/grass-user</a><br>
</blockquote></div>