grass4.1 -f
Darrell McCauley
mccauley at ecn.purdue.edu
Thu Jan 27 19:31:57 EST 1994
Recall a while back I said something about adding a -f
flag so that you don't have to go through the initial
startup screen in grass (verifying location & mapset)?
Here's what's necessary:
1. edit your grass4.1 script and modify the last line from
exec $GISBASE/etc/GIS.sh
to
exec $GISBASE/etc/GIS.sh $*
2. edit $GISBASE/etc/GIS.sh and add the three lines with
the '-' prepended (don't actually prepend the '-')
- if [ $?1 -ne "-f" ]
- then
$ETC/gis_set
case $? in
0) ;;
*) exit ;;
esac
- fi
That way, grass will automagically fire up with the last-used
location and mapset. If someone likes this, make sure that you
send this to grassbug at zorro or contact someone so that it has
a chance to make it into grass4.2
--Darrell
More information about the grass-user
mailing list