[GRASSLIST:2834] Re: error using batch-grass.sh

Hamish hamish_nospam at yahoo.com
Wed Mar 3 19:35:54 EST 2004


> Thanks for your response, "batch-grass.sh" is in
> http://grass.ibiblio.org/faq/
...
> > I want to use GRASS commands in a my shell script, I
> > tried to use of batch-grass.sh:
> > 
> > ./batch-grass.sh Tehran_2 root g.list type=rast
> > 
> > but I get this error:
> > 
> > ./batch-grass.sh: line 61: g.list: command not found
...
> > In this case(run the script in the grass env, I give
> > this error:
> > 
> > ERROR: program 'g.list' cannot be executed because:
> > Neither a command line (cmd) or interactive (inter)
> > version was found



make sure that the directories listed at the top of "batch-grass.sh"
are correct:

GISDBASE=/home/user/grassdata
GISBASE=/usr/local/grass5
GISRC=$GISDBASE/../.grassrc5


Checks for these should probably be added to the script..


Hamish




More information about the grass-user mailing list