Non-interactive access to Grass, change of LOCATION
olaf at photo.verm.tu-muenchen.de
Tue Jul 5 09:28:11 EDT 1994
I think Darrell McCauley answered your question a while ago.
>----- Begin Included Message -----
> I want to enter and leave Grass without going through the
>interactive entry and exit screens, preferably by entering something l>ike
>"grass -d -l<location.name> -m<mapset.name>", the -d meaning "with
>default settings". As I understand it this can be done by changing
>GIS.sh. Does anybody have such a GIS.sh that I can copy?
> I also want to be able to migrate to another LOCATION without
>leaving Grass first, so: g.location location=<location.name>
>I know there has been mail on these subjects, but I can't track it down
>in my own archive. Perhaps some-one reading this did a better job...
>----- End Included Message -----
>I usually work with the same location day-in, day-out.
>Eventually, I found q&a in GIS.sh to be pesky. So...
>I put new_startup_scripts.shar.Z in grass/incoming on moon (a
>compressed sh archive). These files fix grass so that it has the
>following command line arguments:
>% grass4.1 -h
>grass4.1 [-f] [-e] [-l location] [-m mapset] [-d gisdbase]
>-f says do a fast startup, i.e., skip the initialization screen
>-e says do a fast exit, i.e., skip the "GRASS SESSION WRAPUP"
> (every had to sit through this for a LARGE database at 1200
>the others override defaults in ~/.grassrc and are self
>explanatory. minimal error checking is done. I used getopts (hope its
>portable, but if it's not, please suggest an alternative).
>If you'd like to see something like this in future versions,
>be sure to tell the appropriate people.
>James Darrell McCauley, Purdue Univ, West Lafayette, IN 47907-1146, USA
>mccauley at ecn.purdue.edu, mccauley%ecn at purccvm.bitnet, pur-ee!mccauley
>** will finish PhD/engr in 9/94 - need job. inquiries welcome (no hh, p>lz) **
More information about the grass-dev