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
(attachments)

···
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
On 08.03.2015 20:05, Michal Zimmermann wrote:
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
Hi Michal,
unless I don't understand the problem, that is what "-text" does. Check with grass --help for other flags. Or, is it something else in question here?
Cheers, Nikos
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
···
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
Try to delete the file “.gislock” in the MAPSET directory that you are trying to work with, then start grass64.
···
On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
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
.
On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha@arava.co.il> wrote:
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
Weird
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.
Here’s the explanation how to do this:
http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29
···
On 03/08/2015 11:03 PM, Michal Zimmermann wrote:
I did, it always throws me out.
Od:Micha Silver
Odesláno:8. 3. 2015 22:02
Komu:Michal Zimmermann; GRASS user list
Předmět:Re: [GRASS-user] GRASS jumps to shell immediately after start
Try to delete the file “.gislock” in the MAPSET directory that you are trying to work with, then start grass64.
This mail was received via Mail-SeCure System. =
On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
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
.
On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha@arava.co.il> wrote:
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
Hi Michal
(keeping this on the list…)
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
How did you install? Maybe try running the Init.sh (/usr/lib/grass64/etc/Init.sh) to follow error messages. Also what shell are you running? I seem to recall seeing in the original post zsh? Wonder if that could be the problem?
···
On 03/09/2015 02:46 PM, Michal Zimmermann wrote:
That works. I always thught you could run grass from interactive shell, was I wrong?
On Sun, Mar 8, 2015 at 10:21 PM, Micha Silver <micha@arava.co.il> wrote:
Weird
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.
Here’s the explanation how to do this:
http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29
On 03/08/2015 11:03 PM, Michal Zimmermann wrote:
I did, it always throws me out.
Od:Micha Silver
Odesláno:8. 3. 2015 22:02
Komu:Michal Zimmermann; GRASS user list
Předmět:Re: [GRASS-user] GRASS jumps to shell immediately after start
Try to delete the file “.gislock” in the MAPSET directory that you are trying to work with, then start grass64.
On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
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
.
On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha@arava.co.il> wrote:
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
This mail was received via Mail-SeCure System.
=
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
Hi,
when run with the command you sent, it gives the following output:
Cleaning up temporary files …
Starting GRASS …
/usr/lib/grass64/etc/Init.sh: 409: /usr/lib/grass64/etc/Init.sh: /etc/clean_temp: not found
/usr/lib/grass64/etc/Init.sh: 580: /usr/lib/grass64/etc/Init.sh: /etc/set_data: not found
I installed 6.4 from the official ubuntu repo and 7.0 comes from ubuntugis repo. init.sh is completely missing for v7.0.
···
On Mon, Mar 9, 2015 at 2:29 PM, Micha Silver <micha@arava.co.il> wrote:
Hi Michal
(keeping this on the list…)
On 03/09/2015 02:46 PM, Michal Zimmermann wrote:
That works. I always thught you could run grass from interactive shell, was I wrong?
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 
How did you install? Maybe try running the Init.sh (/usr/lib/grass64/etc/Init.sh) to follow error messages.
Also what shell are you running? I seem to recall seeing in the original post zsh? Wonder if that could be the problem?
This mail was received via Mail-SeCure System.
–
On Sun, Mar 8, 2015 at 10:21 PM, Micha Silver <micha@arava.co.il> wrote:
Weird
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.
Here’s the explanation how to do this:
http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29
On 03/08/2015 11:03 PM, Michal Zimmermann wrote:
I did, it always throws me out.
Od:Micha Silver
Odesláno:8. 3. 2015 22:02
Komu:Michal Zimmermann; GRASS user list
Předmět:Re: [GRASS-user] GRASS jumps to shell immediately after start
Try to delete the file “.gislock” in the MAPSET directory that you are trying to work with, then start grass64.
On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
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
.
This mail was received via Mail-SeCure System.
This mail was received via Mail-SeCure System.
=
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha@arava.co.il> wrote:
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
So something with the PATH is definitely not getting setup right. What are the contents of /usr/bin/grass64? Yes, grass70 starts with a different script altogether (python)
···
On 03/09/2015 03:32 PM, Michal Zimmermann wrote:
Hi,
when run with the command you sent, it gives the following output:
Cleaning up temporary files …
Starting GRASS …
/usr/lib/grass64/etc/Init.sh: 409: /usr/lib/grass64/etc/Init.sh: /etc/clean_temp: not found
/usr/lib/grass64/etc/Init.sh: 580: /usr/lib/grass64/etc/Init.sh: /etc/set_data: not found
I installed 6.4 from the official ubuntu repo and 7.0 comes from ubuntugis repo. init.sh is completely missing for v7.0.
On Mon, Mar 9, 2015 at 2:29 PM, Micha Silver <micha@arava.co.il> wrote:
Hi Michal
(keeping this on the list…)
On 03/09/2015 02:46 PM, Michal Zimmermann wrote:
That works. I always thught you could run grass from interactive shell, was I wrong?
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 
How did you install? Maybe try running the Init.sh (/usr/lib/grass64/etc/Init.sh) to follow error messages.
Also what shell are you running? I seem to recall seeing in the original post zsh? Wonder if that could be the problem?
On Sun, Mar 8, 2015 at 10:21 PM, Micha Silver <micha@arava.co.il> wrote:
Weird
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.
Here’s the explanation how to do this:
http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29
On 03/08/2015 11:03 PM, Michal Zimmermann wrote:
I did, it always throws me out.
Od:Micha Silver
Odesláno:8. 3. 2015 22:02
Komu:Michal Zimmermann; GRASS user list
Předmět:Re: [GRASS-user] GRASS jumps to shell immediately after start
Try to delete the file “.gislock” in the MAPSET directory that you are trying to work with, then start grass64.
On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
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
.
On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha@arava.co.il> wrote:
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
This mail was received via Mail-SeCure System.
=
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
trap “echo ‘User break!’ ; exit” 2 3 9 15
Set the GISBASE variable
GISBASE=/usr/lib/grass64
export GISBASE
exec “$GISBASE/etc/Init.sh” “$@”
···
On Mon, Mar 9, 2015 at 2:43 PM, Micha Silver <micha@arava.co.il> wrote:
On 03/09/2015 03:32 PM, Michal Zimmermann wrote:
Hi,
when run with the command you sent, it gives the following output:
Cleaning up temporary files …
Starting GRASS …
/usr/lib/grass64/etc/Init.sh: 409: /usr/lib/grass64/etc/Init.sh: /etc/clean_temp: not found
/usr/lib/grass64/etc/Init.sh: 580: /usr/lib/grass64/etc/Init.sh: /etc/set_data: not found
So something with the PATH is definitely not getting setup right.
What are the contents of /usr/bin/grass64?
I installed 6.4 from the official ubuntu repo and 7.0 comes from ubuntugis repo. init.sh is completely missing for v7.0.
Yes, grass70 starts with a different script altogether (python)
This mail was received via Mail-SeCure System.
–
On Mon, Mar 9, 2015 at 2:29 PM, Micha Silver <micha@arava.co.il> wrote:
Hi Michal
(keeping this on the list…)
On 03/09/2015 02:46 PM, Michal Zimmermann wrote:
That works. I always thught you could run grass from interactive shell, was I wrong?
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 
How did you install? Maybe try running the Init.sh (/usr/lib/grass64/etc/Init.sh) to follow error messages.
Also what shell are you running? I seem to recall seeing in the original post zsh? Wonder if that could be the problem?
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
On Sun, Mar 8, 2015 at 10:21 PM, Micha Silver <micha@arava.co.il> wrote:
Weird
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.
Here’s the explanation how to do this:
http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29
On 03/08/2015 11:03 PM, Michal Zimmermann wrote:
I did, it always throws me out.
Od:Micha Silver
Odesláno:8. 3. 2015 22:02
Komu:Michal Zimmermann; GRASS user list
Předmět:Re: [GRASS-user] GRASS jumps to shell immediately after start
Try to delete the file “.gislock” in the MAPSET directory that you are trying to work with, then start grass64.
On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
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
.
This mail was received via Mail-SeCure System.
This mail was received via Mail-SeCure System.
=
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha@arava.co.il> wrote:
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
That looks correct. I’m out of ideas…
···
On 03/09/2015 03:53 PM, Michal Zimmermann wrote:
trap “echo ‘User break!’ ; exit” 2 3 9 15
Set the GISBASE variable
GISBASE=/usr/lib/grass64
export GISBASE
exec “$GISBASE/etc/Init.sh” “$@”
On Mon, Mar 9, 2015 at 2:43 PM, Micha Silver <micha@arava.co.il> wrote:
On 03/09/2015 03:32 PM, Michal Zimmermann wrote:
Hi,
when run with the command you sent, it gives the following output:
Cleaning up temporary files …
Starting GRASS …
/usr/lib/grass64/etc/Init.sh: 409: /usr/lib/grass64/etc/Init.sh: /etc/clean_temp: not found
/usr/lib/grass64/etc/Init.sh: 580: /usr/lib/grass64/etc/Init.sh: /etc/set_data: not found
So something with the PATH is definitely not getting setup right.
What are the contents of /usr/bin/grass64?
I installed 6.4 from the official ubuntu repo and 7.0 comes from ubuntugis repo. init.sh is completely missing for v7.0.
Yes, grass70 starts with a different script altogether (python)
On Mon, Mar 9, 2015 at 2:29 PM, Micha Silver <micha@arava.co.il> wrote:
Hi Michal
(keeping this on the list…)
On 03/09/2015 02:46 PM, Michal Zimmermann wrote:
That works. I always thught you could run grass from interactive shell, was I wrong?
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 
How did you install? Maybe try running the Init.sh (/usr/lib/grass64/etc/Init.sh) to follow error messages.
Also what shell are you running? I seem to recall seeing in the original post zsh? Wonder if that could be the problem?
On Sun, Mar 8, 2015 at 10:21 PM, Micha Silver <micha@arava.co.il> wrote:
Weird
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.
Here’s the explanation how to do this:
http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29
On 03/08/2015 11:03 PM, Michal Zimmermann wrote:
I did, it always throws me out.
Od:Micha Silver
Odesláno:8. 3. 2015 22:02
Komu:Michal Zimmermann; GRASS user list
Předmět:Re: [GRASS-user] GRASS jumps to shell immediately after start
Try to delete the file “.gislock” in the MAPSET directory that you are trying to work with, then start grass64.
On 03/08/2015 09:15 PM, Michal Zimmermann wrote:
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
.
On Sun, Mar 8, 2015 at 8:11 PM, Micha Silver <micha@arava.co.il> wrote:
I guess you mean that the GRASS environment is not being setup? Can you run i.e. g.version ?
On 03/08/2015 08:05 PM, Michal Zimmermann wrote:
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
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
This mail was received via Mail-SeCure System.
=
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.
–
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz
This mail was received via Mail-SeCure System.