Concurrent use of GRASS4.2

Venkatesh,

NRCS modified the startup script and GIS.sh script for concurrent use for
GRASS4.13. These changes should work for GRASS4.2 code.
Add a positional argument to the grass4.2 startup script

GRASS4.13 startup script....................................

:
GISBASE=/data/grass_src/4.2_bin
export GISBASE
echo $GISBASE
exec $GISBASE/etc/GIS.sh $1 <- add positional argument here

GRASS startup script....................................

modify the following lines in $GISBASE/etc/GIS.sh file:

     8 # get home directory, name of lockfile and gisrc file
     9
    10 home=`cd;pwd`
    11 lockfile="$home/.gislock$1" <- add positional argument here
    12 GISRC="$home/.grassrc$1" <- add positional argument here
    13 export GISRC

   145 echo "GRASS 4.13 >$1> '" >> $cshrc <- add positional
                                                           argument here

   180 PS1="
   181 Mapset <$MAPSET> in Location <$LOCATION_NAME>
   182 GRASS-GRID >$1> " <- add positional argument here

Then the same user can start many different GRASS sessions in the
same location/mapset or in a new location/mapset by typing:

grass4.13 sess=1, or grass4.13 sess=2, or grass4.13 sess=4, etc.

Jill
                                                     .
Jill R. Schuler / \
USDA Natural Resource Conservation Service /.....\/\ /\
2627 Redwing, Suite 120 / \_/\_/ \
Ft. Collins, Co 80526 /\/ _/\ ---------
_____________________________________________/

FAX:970-282-1930 VCOMM:9010-2418 PHONE:970-282-2418
e-mail:jschuler@itc.nrcs.usda.gov

"A map is the greatest of all epic poems. Its lines and colors show the
realization of great dreams." Gilbert Grosvenor, National Geographic Editor