Hi<br><br>I&#39;m trying to run GRASS and import raster map using a bash 
script but I&#39;m getting an error saying r.in.gdal not found. <br><br>What
 have I done wrong? see the script below.<br><br>#!/bin/sh<br><br>#variable
 to customize:<br>
# path to GRASS software main directory<br>GISBASE=/usr/bin/grass64<br>#
 path to GRASS database<br>GISDBASE=$HOME/grassdem <br><br>GISBASELIB=/usr/lib/grass64<br><br>#
 nothing to change below<br>MAP=SRTMDEM.tiff<br>LOCATION=/home/tgumede1/<div id=":184" class="ii gt">grassdem<br>
<br><br># generate temporal LOCATION:<br>TEMPDIR=Floods<br>mkdir -p 
$GISDBASE/$TEMPDIR/tmp<br><br># save existing $HOME/.grassrc6<br>if test
 -e $HOME/.grassrc6 ; then<br>mv $HOME/.grassrc6 
/$GISDBASE/$TEMPDIR.grassrc6<br>
fi<br><br>echo &quot;LOCATION_NAME: $TEMPDIR&quot; &gt; $HOME/.grassrc6<br>echo 
&quot;MAPSET:tmp&quot; &gt;&gt; $HOME/.grassrc6<br>echo &quot;DIGITIZER: none&quot; &gt;&gt;
 $HOME/.grassrc6<br>echo &quot;GISDBASE: $GISDBASE&quot; &gt;&gt; $HOME/.grassrc6<br>
export GISBASE=$GISBASE<br><br># first our GRASS, then the rest<br>export
 PATH=$GISBASE:$GISBASELIB/scripts:$PATH<br><br># first have our 
private libraries:<br>export LD_LIBRARY_PATH=$GISDBASE/lib:$GISBASELIB/lib:$LD_LIBRARY_PATH<br>
<br># import raster map into new location:<br>r.in.gdal -eo in=$MAP 
out=dem location=$LOCATION<br>if [$? -eq 1] ; then<br>echo &quot;An error 
occured. Stop.&quot;<br>exit 1<br>fi<br><br># restore saved $HOME/.grassrc6<br>
if test -e $HOME/.grassrc6 ; then<br>mv $HOME/.grassrc6 
/$GISDBASE/$TEMPDIR.grassrc6<br>fi<br><font color="#888888"><br></font></div><br clear="all"><br>-- <br>Kind Regards<br>TS Gumede<br>CSIR, Meraka Institute<br>072 258 1650<br><br>