[GRASS-user] .gislock problem

Glynn Clements glynn at gclements.plus.com
Mon Jul 7 13:48:09 EDT 2008


Christian Braun wrote:

> I am a colleague of Jessica who posted before this:
> http://www.nabble.com/GRASS-BATCH-JOBS-to17470510.html#a17475609
> 
> We are using GRASS in an interactive website to calculate on-the-fly maps
> which are then presented to the user. It is not really a WebGIS-Client and
> it doesn't aim to be one. We tested also pyWPS but the script was there
> before and it was to complicated to adept the needs of pyWPS.
> 
> As we are running GRASS in a "multiuser" web environment we need a
> workaround to treat different contemporary users. We decided then to create
> a bash workaround to solve this:
> First we encountered that GRASS in batchmode is not writing the .gislock
> file, but it writes in normal interactive mode with the same user used.
> In the next step we tested if we can then run two instances of the same
> script in the same mapset and it worked.
> 
> We can not find the issue why this is working. Currently we are in the
> testing phase and the project will be online soon, so we have to be sure
> what GRASS is doing with .gislock and all related staff to avoid problems
> with concurrent users.

For a web application, I would suggest bypassing Init.sh altogether,
and setting any relevant environment variables yourself.

For non-interactive use, it should suffice to set:

	LD_LIBRARY_PATH
	PATH
	GISBASE
	GISRC
	GRASS_MESSAGE_FORMAT=silent
	GRASS_PAGER=cat

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list