<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Sir,<br>&gt;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; My project is based on <span style="background: transparent none repeat scroll 0% 0%; cursor: pointer; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" class="yshortcuts" id="lw_1240807959_3">batch processing</span> in GRASS GIS.<br>&gt; The following steps have been performed.<br>&gt; 1)<a target="_blank" href="http://v.in"><span class="yshortcuts" id="lw_1240807959_4">v.in</span></a>.db<br>&gt; 2)<a target="_blank" href="http://v.to"><span class="yshortcuts" id="lw_1240807959_5">v.to</span></a>.rast<br>&gt; 3)r.surf.idw<br>&gt;<br>&gt; The next step is to do batch processing on the above mapset and the above<br>&gt; output should be displayed within a particular interval time given by the<br>&gt;
 user.<br>&gt;<br>&gt; #!/bin/sh<br>&gt; TMPDIR=/tmp<br>&gt;<br>&gt; MAINDIR=/Computer/disk/ProgramFiles/QuantumGIS<br>&gt; MYUSER=$HOME/gbase<br>&gt; export GISBASE=$MAINDIR/grass<br>&gt; # the file contains the GRASS variables which define the LOCATION etc.<br>&gt; echo "GISDBASE: $HOME/gbase<br>&gt; LOCATION_NAME: Kerala<br>&gt; MAPSET: PERMANENT<br>&gt; " &gt; $TMPDIR/.my_grassjob<br>&gt; export GISRC=$TMPDIR/.my_grassjob<br>&gt;<br>&gt; export PATH=$GISBASE/bin:$GISBASE/scripts:$PATH<br>&gt; export LD_LIBRARY_PATH=$MAINDIR/lib:$GISBASE/lib:$LD_LIBRARY_PATH<br>&gt;<br>&gt; # settings for graphical output<br>&gt; PNGOUTPUTDIR=$TMPDIR<br>&gt; # current date<br>&gt; DATE=`LC_ALL=C date -R | tr -s ' ' ' ' | cut -d' ' -f2,3,4 | tr -s ' ' '_'`<br>&gt; export GRASS_PNGFILE=$PNGOUTPUTDIR/gbase_${DATE}.png<br>&gt; export GRASS_TRUECOLOR=TRUE<br>&gt; export GRASS_WIDTH=900<br>&gt; export GRASS_PNG_COMPRESSION=1<br>&gt;<br>&gt; # use process ID (PID) as lock
 file number:<br>&gt; export GIS_LOCK=$$<br>&gt;<br>&gt;<br>&gt; ##### the algorithms goes here<br>&gt;<br>&gt; error_routine () {<br>&gt; &nbsp;echo "ERROR: $1"<br>&gt; &nbsp;exit 1<br>&gt; }<br>&gt;<br>&gt;<br>&gt; # set region to default settings (here: world)<br>&gt; g.region -d || error_routine "g.region"<br>&gt;<br>&gt; #open PNG output<br>&gt; d.mon start=PNG || error_routine "d.mon start=PNG"<br>&gt;<br>&gt;<br>&gt;<br>&gt; # import the maps:<br>&gt; &nbsp;v.in.db driver=mysql database=Kerala table=rain x=LON y=LAT output=Location<br>&gt; key=ID || error_routine "v.in.db"<br>&gt; &nbsp;v.to.rast input=Location output=Loca use=attr column=ELEV_FT ||<br>&gt; error_routine "v.to.rast"<br>&gt; &nbsp;r.surf.idw input=Loca output=surfloca || error_routine "r.surf.idw"<br>&gt;<br>&gt;<br>&gt;<br>&gt; # display<br>&gt; d.vect Location || error_routine "d.vect"<br>&gt;<br>&gt; d.rast Loca column=class type=point \<br>&gt; &nbsp; themetype=graduated_points
 maxsize=20 nint=6&nbsp; || error_routine "d.rast"<br>&gt; d.rast surfloca || error_routine "d.rast"<br>&gt;<br>&gt; # close PNG output<br>&gt; d.mon stop=PNG&nbsp; || error_routine "d.mon stop"<br>&gt;<br>&gt; # remove imported map, no longer needed:<br>&gt; g.remove vect=Location&nbsp; || error_routine "g.remove"<br>&gt; rm -f $TMPDIR/ $TMPDIR/<br>&gt;<br>&gt; # remove internal tmp stuff:<br>&gt; $GISBASE/etc/clean_temp&nbsp; || error_routine "clean_temp"<br>&gt; rm -rf $TMPDIR/grass6-$USER-$GIS_LOCK<br>&gt;<br>&gt; # done.<br>&gt; echo "Generated $GRASS_PNGFILE"<br>&gt;<br>&gt; Then the above script is performed by these steps:<br>&gt;<br>&gt; chmod u+x $HOME/my_grassjob.sh<br>&gt; export GRASS_BATCH_JOB=$HOME/my_grassjob.sh<br>&gt; grass63 ~/grassdata/spearfish60/neteler/<br>&gt;<br>&gt; Problem is concurrent users cannot access it.Display window never opens,<br>&gt; what is wrong with the above script codings.Please correct it.Also guide me<br>&gt;
 how to set the time intervals in batch processing.<br>&gt;<br>&gt; Thank You in advance.<br>&gt;<br>&gt; Regards<br>&gt;<br>&gt;<br>&gt;</td></tr></table><br>