Thanks Glynn. I'm writing my first grass scripts...
About region settings do you mean to use something like this?:

g.region -u rast=$RAST save=region.tmp.$$
WIND_OVERRIDE=region.tmp.$$
export WIND_OVERRIDE
(my code)
g.remove region=region.tmp.$$

The exec command obviously was an error!

Giovanni

2008/1/6, Glynn Clements <[EMAIL PROTECTED]>:
>
> G. Allegri wrote:
>
> > exec `g.region rast="$RAST"`
>
> This is bogus on two counts. First, g.region doesn't output a shell
> command, so the use of exec and backticks makes no sense. Second,
> shell scripts shouldn't change the current region; they should create
> a temporary region with "g.region ... save=..." and use WIND_OVERRIDE.
>
> --
> Glynn Clements <[EMAIL PROTECTED]>
>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to