[GRASS-dev] Define External Files Save path

Glynn Clements glynn at gclements.plus.com
Thu May 6 12:17:22 EDT 2010


Luisa Peña wrote:

> I'm using an external toolbox, that I'm running from GRASS, to save a few
> Gtiff files. But, Since I'm not defining the path, GRASS/Bash is placing it
> in my home directory. How can I define, in GRASS, a GLOBAL_PATH where those
> files are saved (e.g. a TEMP directory)?

Commands which accept filenames as parameters normally pass the
filename directly to the OS. If you don't specify a path, the filename
will be interpreted relative to the current directory.

The simplest solution is to change the current directory before
running the program. One option is to replace the program with a
script which changes the directory before running the program.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list