[GRASS-user] temporary layer creation

Markus Neteler neteler at osgeo.org
Tue Sep 27 10:35:16 EDT 2011


On Tue, Sep 27, 2011 at 1:44 PM, Rainer M Krug <r.m.krug at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
> I want to need to create a temporary raster layer - is there a
> function to create a unique name for this raster?

Check
http://grass.osgeo.org/wiki/Parallel_GRASS_jobs#The_Grid_Engine_script
...
# generate machine (blade) unique TMP string
UNIQUE=`mktemp`
MYTMP=`basename $UNIQUE`
...

"mktemp" is part of "coreutils" on my Linux machine (maybe use it with
--dry-run).

Markus


More information about the grass-user mailing list