d.mon is designed for interactive use. If you're writing a script, don't use it. Set GRASS_RENDER_IMMEDIATE=png (or =cairo) and use the environment variables. -- Glynn Clements <glynn at gclements.plus.com>