Hi<div><br></div><div>I have a Python Script (for GRASS6.4) where I run this:</div><div>grass.run_command(&quot;g.mapset&quot;, mapset = t_mapset)        <span class="Apple-tab-span" style="white-space:pre">        </span></div><div>
<span class="Apple-style-span" style="white-space: pre;">(to change active mapset)</span></div><div><span class="Apple-style-span" style="white-space: pre;">But I get all this in the command output:</span></div><div><span class="Apple-style-span" style="white-space: pre;">Erasing monitors...
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=768, GRASS_HEIGHT=501
Cleaning up temporary files...
Your shell continues to use the history for the old mapset
You can switch the history by commands:
history -w; history -r /usr/local/share/grassdata/Place/National/.bash_history; HISTFILE=/usr/local/share/grassdata/Place/National/.bash_history</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br>
</span></div><div><span class="Apple-style-span" style="white-space: pre;">It seems to be running ok without any impact but:</span></div><div><span class="Apple-style-span" style="white-space: pre;">1- Why is this happening?</span></div>
<div><span class="Apple-style-span" style="white-space: pre;">2- How can I avoid this?</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;">Thanks</span></div>
<div><span class="Apple-style-span" style="white-space: pre;">Helena</span></div>