Hi list. I have recently started to use the grass software. And now im stuck in a batch file. <br><br>I installed the grass software using the .deb package grass_6.0.2-6_i386.deb. Also installed the gdal libraries. And the programs works fine with the spearfish database and the console.
<br>Now, I tried to run a shell script but doesn't work. The only thing that I want to have is the version of the GRASS program in a file.<br><br>I have unpacked the spearfish database in /var/www/grass/DATAGRASS<br><br>
And my batchfile looks like this<br>/var/www/grass/var.sh<br><br>GISBASE=/usr/lib/grass<br>GISDBASE=/var/www/grass/GRASSDATA<br>GISRC=/var/www/grass/.grassrc6<br>LOCATION_NAME=spearfish60<br>MAPSET=rsiis<br>LOCATION=/var/www/grass/GRASSDATA/spearfish60/rsiis
<br>PATH=$PATH:/usr/lib/grass/bin:/usr/lib/grass/scripts<br>LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/grass/lib<br>HOME=/var/www/grass/<br>GIS_LOCK=$$<br>rm -f version_info.*<br>rm -f grasserrors.*<br>g.version >> /var/www/grass/version_info.txt 2>> /var/www/grass/grasserrors.txt
<br><br><br><br>the .grassrc6 looks like this<br><br>/var/www/grass/.grassrc6<br>
GISBASE: /usr/lib/grass<br>GISDBASE: /var/www/grass/GRASSDATA<br>LOCATION_NAME: spearfish60<br>MAPSET: rsiis<br>DIGITIZER: none<br>LOCATION: /var/www/GRASSDATA/spearfish60/rsiis<br>HOME: /var/www/grass/<br><br><br>Well, when I executed the
<br>#./var.sh <br>I got this response<br>./var.sh: line 14: 16732 Segmentation fault g.version >>/var/www/grass/version_info.txt 2>>/var/www/grass/grasserrors.txt<br><br>The number after de "line 14" changes every time that I run the shell.
<br>What am I doing wrong? Can you help me?<br>Thanks in advance.<br clear="all"><br>-- <br>Humano<br><a href="http://jiuman.blogspot.com">http://jiuman.blogspot.com</a>