[GRASS-user] OSGeo4 WWinGrass and msys

Hi list,

I’m using Grass 7.0.3 (64 bit) installed from OSGeo4W package. I noticed that the command line interface that winGrass uses is windowss CMD. But I’d like to be able to use some bash shell syntax, like using g.list as input to r.series. Is there a way to use MSys as the Grass 7 command line interface?

Thanks

Daniel

Hi,

2016-04-05 13:43 GMT+02:00 Daniel Victoria <daniel.victoria@gmail.com>:

I'm using Grass 7.0.3 (64 bit) installed from OSGeo4W package. I noticed
that the command line interface that winGrass uses is windowss CMD. But I'd
like to be able to use some bash shell syntax, like using g.list as input to
r.series. Is there a way to use MSys as the Grass 7 command line interface?

yes, add to your apps/grass/grass7.0.3/etc/env.bat file:

set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Hi,

2016-04-05 14:00 GMT+02:00 Martin Landa <landa.martin@gmail.com>:

yes, add to your apps/grass/grass7.0.3/etc/env.bat file:

set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe

btw, msys package is not dependency of GRASS 7. You need to install it.

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Hi,

2016-04-05 14:01 GMT+02:00 Martin Landa <landa.martin@gmail.com>:

yes, add to your apps/grass/grass7.0.3/etc/env.bat file:

set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe

btw, msys package is not dependency of GRASS 7. You need to install it.

documented in r68212 [1]. Ma

[1] https://trac.osgeo.org/grass/changeset/68212

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Worked like a charm. Thanks Martin

···

On Tue, Apr 5, 2016 at 9:00 AM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2016-04-05 13:43 GMT+02:00 Daniel Victoria <daniel.victoria@gmail.com>:

I’m using Grass 7.0.3 (64 bit) installed from OSGeo4W package. I noticed
that the command line interface that winGrass uses is windowss CMD. But I’d
like to be able to use some bash shell syntax, like using g.list as input to
r.series. Is there a way to use MSys as the Grass 7 command line interface?

yes, add to your apps/grass/grass7.0.3/etc/env.bat file:

set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe

Ma


Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa