[GRASS-dev] batch-grass.sh not working with GRASS > 6.0

Markus Neteler neteler at itc.it
Mon Aug 21 08:36:55 EDT 2006


On Mon, Aug 21, 2006 at 02:30:51PM +0200, Robert Nuske wrote:
> Markus,
> 
> with the help of the wiki page you mentioned, I discovered that batch-grass.sh 
> is missing at least:
> - LD_LIBRARY_PATH
> - GIS_LOCK
> - cleanup routine
> 
> where $GISBASE/lib in the LD_LIBRARY_PATH seems to be vital.
> 
> 
> The broken batch-grass.sh is still on this website:
> http://grass.itc.it/faq/index.html
> 
> It should be stated that the script is not working with newer versions of 
> GRASS or fixed accordingly.

Yesterday I had already updated the FAQ page accordingly.

> Since I found batch-grass comfortable for running the same script in different 
> mapsets over night, I updated it. I attached my version of batch-grass.sh, 
> which is working with all 6.x versions, in case you want to replace the 
> broken one.

Thanks, I'll upload the new script. 

Markus


> cheers,
>   robert
> 
> 
> Am Freitag 18 August 2006 13:44 schrieb Markus Neteler:
> > Robert,
> >
> > please run the script with
> > sh -x scriptname
> > to better understand what happens.
> >
> > We have a Wiki page dedicated to Shell batch jobs:
> > http://grass.gdf-hannover.de/wiki/GRASS_and_Shell
> > which may also be of help.
> >
> > Markus
> >
> > On Fri, Aug 18, 2006 at 12:29:42PM +0200, Robert Nuske wrote:
> > > Dear Developers,
> > >
> > > does anybody know why batch-grass.sh
> > > from the GRASS FAQ "How to use GRASS in batch mode?"
> > > does not work anymore?
> > >
> > > I run the batch-grass.sh script for the last time successfully in May
> > > with whatever cvs version was up-to-date at that time, probably 6.1.
> > >
> > > After fiddling with my grass-scripts and cluelessly looking through
> > > batch-grass.sh I tested all 6.x versions and found that my set-up works
> > > with the 6.0 version but not with the newer versions.
> > >
> > > Thats why I am wondering what changed in GRASS to that effect. And what
> > > do I need to do, to get batch-grass.sh working again.
> > >
> > > I very much appreciate any hints, tips and fixes.
> > >
> > > cheers,
> > >   robert
> > >
> > > --tests-----------------------------------------------------------
> > > simple test with one command:
> > > ./batch-grass.sh eifel nwz2 g.region -p
> > >
> > > 6.0.2  is okay
> > >
> > > grass-6.1.0 - 6.3.cvs give the following
> > > ./batch-grass.sh: line 62: 16750 Speicherzugriffsfehler  $*
> > >
> > >
> > > providing the grass commands in a file:
> > > ./batch-grass.sh eifel nwz2 -file g_commands.sh
> > >
> > > grass-6.0.2 again works
> > >
> > > and the others fail with this message:
> > > sh: line 1: 17129 Speicherzugriffsfehler  g.region -p
> > >
> > >
> > > with:
> > > grass-6.3.cvs (cvs from 2006-08-17)
> > > grass-6.2.cvs (built from grass-6.2.cvs_src_snapshot_2006_08_12)
> > > grass-6.1.0   (built from grass-6.1.0.tar.gz)
> > > grass-6.0.2   (built from grass-6.0.2.tar.gz)
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > grass-dev mailing list
> > > grass-dev at grass.itc.it
> > > http://grass.itc.it/mailman/listinfo/grass-dev


> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev

-- 
Markus Neteler  <neteler itc it>  http://mpa.itc.it/markus/
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy




More information about the grass-dev mailing list