[GRASSLIST:4774] Re: batch jobs
Eric G. Miller
egm2 at jps.net
Fri Oct 18 03:43:49 EDT 2002
On Fri, Oct 18, 2002 at 04:44:56PM +0930, M.Wegmann wrote:
> Hello,
>
> first thanks a lot for your help, I managed to write my first bash script and it's working.....nearly ;-)
>
> could it be, that I can't grab a file which is an output of a GRASS command?
>
> eg (temp and $temp):
>
> r.mapcalc "temp=int(raster*1000000)"
^^^^ that isn't a shell variable
>
> r.statistics base=killarney cover=$temp method=....
^^^^^ this is a non-existent? shell
variable
> here it seems that it can't read the $temp file. error message is: "no
> cover map found". what would be a solution for that?
#! /bin/sh
temp = temp
r.mapcalc "$temp=int(raster*1000000)"
r.statistic bast=kllarney cover="$temp" method=...
--
static const char signature[] =
"Copyright (c) 2002 Eric G. Miller <egm2 at jps.net>";
More information about the grass-user
mailing list