<div dir="ltr">trap "echo 'User break!' ; exit" 2 3 9 15<br><br># Set the GISBASE variable<br>GISBASE=/usr/lib/grass64<br>export GISBASE<br><br>exec "$GISBASE/etc/Init.sh" "$@"<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 2:43 PM, Micha Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
    
  
  <div style="direction:ltr" bgcolor="#FFFFFF" text="#000000"><span class="">
    <br>
    <br>
    <div>On 03/09/2015 03:32 PM, Michal
      Zimmermann wrote:<br>
    </div>
    </span><blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>Hi,<br>
          </div><span class="">
          when run with the command you sent, it gives the following
          output:<br>
          <br>
          Cleaning up temporary files ...<br>
          Starting GRASS ...<br>
          /usr/lib/grass64/etc/Init.sh: 409:
          /usr/lib/grass64/etc/Init.sh: /etc/clean_temp: not found<br>
          /usr/lib/grass64/etc/Init.sh: 580:
          /usr/lib/grass64/etc/Init.sh: /etc/set_data: not found<br>
        </span></div>
      </div>
    </blockquote>
    <br>
    So something with the PATH is definitely not getting setup right.<br>
    What are the contents of /usr/bin/grass64?<span class=""><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        I installed 6.4 from the official ubuntu repo and 7.0 comes from
        ubuntugis repo. init.sh is completely missing for v7.0.<br>
      </div>
    </blockquote>
    <br></span>
    Yes, grass70 starts with a different script altogether (python)<div><div class="h5"><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Mar 9, 2015 at 2:29 PM, Micha
          Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
              Hi Michal<br>
              (keeping this on the list...)<br>
              <br>
              <div>On 03/09/2015 02:46 PM, Michal Zimmermann wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">That works. I always thught you could run
                  grass from interactive shell, was I wrong?<br>
                </div>
                <div class="gmail_extra"><br>
                </div>
              </blockquote>
              <br>
              You can definitely run GRASS from the shell, in text mode
              only. It's been like that for a few years now - since
              about 1983  ;-)<br>
              How did you install? Maybe try running the Init.sh
              (/usr/lib/grass64/etc/Init.sh) to follow error messages.<br>
              Also what shell are you running? I seem to recall seeing
              in the original post zsh? Wonder if that could be the
              problem?
              <div>
                <div><br>
                  <br>
                  <br>
                  <blockquote type="cite">
                    <div class="gmail_extra">
                      <div class="gmail_quote">On Sun, Mar 8, 2015 at
                        10:21 PM, Micha Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div style="direction:ltr" bgcolor="#FFFFFF" text="#000000"> Weird<br>
                            Well, starting GRASS in text mode is really
                            nothing more than setting some environment
                            variables. I'd suggest you try to setup the
                            environment manually, then try to run some
                            modules. <br>
                            Here's the explanation how to do this:<br>
                            <a href="http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29" target="_blank">http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29</a>
                            <div>
                              <div><br>
                                <br>
                                <br>
                                <div>On 03/08/2015 11:03 PM, Michal
                                  Zimmermann wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div>
                                    <div style="font-family:Calibri,sans-serif;font-size:11pt">I
                                      did, it always throws me out.</div>
                                  </div>
                                  <div dir="ltr">
                                    <hr><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Od:</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:micha@arava.co.il" target="_blank">Micha Silver</a></span><br>
                                    <span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Odesláno:</span><span style="font-family:Calibri,sans-serif;font-size:11pt">‎8. ‎3. ‎2015
                                      22:02</span><br>
                                    <span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Komu:</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:zimmicz@gmail.com" target="_blank">Michal
                                        Zimmermann</a>; <a href="mailto:grass-user@lists.osgeo.org" target="_blank">GRASS user list</a></span><br>
                                    <span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Předmět:</span><span style="font-family:Calibri,sans-serif;font-size:11pt">Re: [GRASS-user]
                                      GRASS jumps to shell immediately
                                      after start</span><br>
                                    <br>
                                  </div>
                                  Try to delete the file ".gislock" in
                                  the MAPSET directory that you are
                                  trying to work with, then start
                                  grass64.<br>
                                  <br>
                                  <br>
                                  <div>On 03/08/2015 09:15 PM, Michal
                                    Zimmermann wrote:<br>
                                  </div>
                                  <blockquote type="cite">
                                    <div dir="ltr">No I can't. But it
                                      seems grass is running, because
                                      when i try to run it again in the
                                      same location, it says concurrent
                                      use is not allowed<br>
                                      .<br>
                                    </div>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote">On Sun,
                                        Mar 8, 2015 at 8:11 PM, Micha
                                        Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span>
                                        wrote:<br>
                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
                                          <div style="direction:ltr" bgcolor="#FFFFFF" text="#000000"> I guess you
                                            mean that the GRASS
                                            environment is not being
                                            setup? Can you run i.e.
                                            g.version ?
                                            <div>
                                              <div><br>
                                                <br>
                                                <div>On 03/08/2015 08:05
                                                  PM, Michal Zimmermann
                                                  wrote:<br>
                                                </div>
                                              </div>
                                            </div>
                                            <blockquote type="cite">
                                              <div>
                                                <div>
                                                  <div dir="ltr">Hi,
                                                    when I try to run
                                                    grass (both 6.4 and
                                                    7.0) with -text
                                                    interface, it
                                                    immediately switches
                                                    back to shell. I
                                                    haven't found
                                                    anything related to
                                                    this issue, can
                                                    anyone help me?
                                                    Thanks<br clear="all">
                                                    <div><br>
                                                      -- <br>
                                                      <div>Michal
                                                        Zimmermann
                                                        (zimmi) <br>
                                                        WWW: <a href="http://www.zimmi.cz" target="_blank">http://www.zimmi.cz</a></div>
                                                    </div>
                                                  </div>
                                                  <br>
                                                </div>
                                              </div>
                                              This mail was received via
                                              Mail-SeCure System.<br>
                                              <br>
                                              <fieldset></fieldset>
                                              <br>
                                              <pre><span>_______________________________________________
grass-user mailing list
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a></span>
This mail was received via Mail-SeCure System.


</pre>
                                            </blockquote>
                                            <br>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <br>
                                      <br clear="all">
                                      <br>
                                      -- <br>
                                      <div>Michal Zimmermann (zimmi) <br>
                                        WWW: <a href="http://www.zimmi.cz" target="_blank">http://www.zimmi.cz</a></div>
                                    </div>
                                    <br>
                                    This mail was received via
                                    Mail-SeCure System.<br>
                                  </blockquote>
                                  <br>
                                  <br>
                                  <br>
                                  This mail was received via Mail-SeCure
                                  System.<br>
                                </div>
                              </div>
                              = </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <br>
                      -- <br>
                      <div>Michal Zimmermann (zimmi) <br>
                        WWW: <a href="http://www.zimmi.cz" target="_blank">http://www.zimmi.cz</a></div>
                    </div>
                    <br>
                    This mail was received via Mail-SeCure System.<br>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div>Michal Zimmermann (zimmi) <br>
          WWW: <a href="http://www.zimmi.cz" target="_blank">http://www.zimmi.cz</a></div>
      </div>
      <br>
      This mail was received via Mail-SeCure System.<br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Michal Zimmermann (zimmi) <br>WWW: <a href="http://www.zimmi.cz" target="_blank">http://www.zimmi.cz</a></div>
</div>