<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:3.0pt;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h2
        {margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:12.0pt;
        margin-left:0in;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:Arial;
        font-style:italic;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.emailstyle18
        {font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I worked more in the locking problem today
and found a partial solution.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I commented the following lines in the
/grass/etc/init.sh file:</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#
Check for concurrent use</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#lockfile=&quot;$LOCATION/.gislock&quot;</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&quot;$ETC/lock&quot;
&quot;$lockfile&quot; $$</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#case
$? in</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
0) ;;</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
1)</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
 echo $USER is currently running GRASS in selected mapset. Concurrent use not
allowed.</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
 rm -rf &quot;$tmp&quot;&nbsp; # remove session files from tmpdir</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
 exit 1 ;;</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
*)</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
 echo Unable to properly access &quot;$lockfile&quot;</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
 echo Please notify system personel.</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#&nbsp;&nbsp;&nbsp;
 exit 1 ;;</span></font></p>

<p class=MsoNormal style='margin:0in;margin-bottom:.0001pt;text-autospace:none'><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>#esac</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The symbol # before the line made it a
comment and the locking is not performed by GRASS. As mention in other mails, concurrence
might not be a problem in windows.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It seems like many other people experienced
this problem but GRASS keeps going while in some other systems crashes, it
might be a difference in how updated XP is.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Note that this is a very pedestrian
solution, GRASS programmers could come up with a better one but in the mean
time this may get you going with WINGRASS.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jonathan Aguero Valverde</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Research Assistant and Ph.D. Candidate</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
  10.0pt;font-family:Arial;color:navy'>Pennsylvania</span></font><font size=2
 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
 color:navy'> </span></font><font size=2 color=navy face=Arial><span
  style='font-size:10.0pt;font-family:Arial;color:navy'>State</span></font><font
 size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
 color:navy'> </span></font><font size=2 color=navy face=Arial><span
  style='font-size:10.0pt;font-family:Arial;color:navy'>University</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The Pennsylvania Transportation Institute</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>201 Transportation Research Building</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
  10.0pt;font-family:Arial;color:navy'>University Park</span></font><font
 size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
 color:navy'>, </span></font><font size=2 color=navy face=Arial><span
  style='font-size:10.0pt;font-family:Arial;color:navy'>PA</span></font><font
 size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
 color:navy'> </span></font><font size=2 color=navy face=Arial><span
  style='font-size:10.0pt;font-family:Arial;color:navy'>16802</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a href="www.personal.psu.edu/jua130">www.personal.psu.edu/jua130</a></span></font></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
wingrass-bounces@grass.itc.it [mailto:wingrass-bounces@grass.itc.it] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Jonathan Aguero<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Friday, October
 13, 2006</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span
 style='font-size:10.0pt;font-family:Tahoma'>8:57 AM</span></font><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> wingrass@grass.itc.it<br>
<b><span style='font-weight:bold'>Subject:</span></b> [winGRASS] Installation
problem native win version</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Dear listers,</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>I downloaded and installed the new
native version of winGRASS yesterday. The installation apparently was
successful but when I tried to start GRASS after I selected the location and
mapset it flashed the following message:</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Locking is not supported in Windows!</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>and close the window.</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>I did not install PG 8.1 since I
have the 8.0 version and I wanted to save the trouble so I modify the grass.bat
the see at the 8.0 folder. Anyway the problem seems more OS related than PG
related. My OS is XP professional SP2.</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Thanks in advance for your help.</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Jonathan Aguero Valverde</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Research Assistant and Ph.D.
Candidate</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
  style='font-size:10.0pt;font-family:Arial'>Pennsylvania</span></font><font
 size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><font
  size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>State</span></font><font
 size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><font
  size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>University</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>The Pennsylvania Transportation
Institute</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>201 Transportation Research Building</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
  style='font-size:10.0pt;font-family:Arial'>University Park</span></font><font
 size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>, </span></font><font
  size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>PA</span></font><font
 size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><font
  size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>16802</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><a href="www.personal.psu.edu/jua130">www.personal.psu.edu/jua130</a></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>