Greetings
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)?
Can anybody help me on this?
2010/4/30 Luisa Peña <luisapena1979@gmail.com>
Greetings
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)?
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@gclements.plus.com>