My question is how to start grass up without the interactive prompting
for database and mapset? An alternative question is: how can I have
access to grass commands and displays from my other modules without a
bunch of programming on the grass source code?I can't seem to find anything in the manuals.
If anybody could help, I would be forever in their debt.__________________________________________________________________
Mike Bender
When you start GRASS you are actually executing a shell and setting
a series of environment variables. These are stored in your
home directory in a .grassrc file. You need to set these environment
variables yourself and export them to make them available to you.
I suggest you look at both the script you invoke when you start
grass, and the GIS.sh called by that script.
If you want I wrote a short version called grass.cmd to enable me
to start GRASS non-interactively for use with GRASSLinks - an http
interface to GRASS. My version includes a separate locking mechanism
to allow 5 users called web to run grass concurrently but with
different mapsets. If you want you can download and untar the GRASSLinks
code and use the file called grass.cmd, in addition to studying the GIS.sh
of the distributed code.
GRASSLinks code is available by anonymous ftp from
ftp.regis.berkeley.edu/pub/grass/grasslinks.tar.Z
Good luck.
---------------------------------------------------------------------
Susan Huse /\ http://www.regis.berkeley.edu/sue
/\ / \ /\
REGIS / \ / \/ \ /\ sue@ced.berkeley.edu
/\/ \ \ / \ /\
University of California / / \ (510) 643-6307
Berkeley \ / \
/ \ \
/ \