[GRASS-user] Command line (bash) for Windows grass?

Is there any way to access a bash window for the Windows mingw version of grass 6.3? What do I need to do? Thanks!

--j

--

Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307

Jonathan Greenberg schrieb:

Is there any way to access a bash window for the Windows mingw version of grass 6.3? What do I need to do? Thanks!

--j

I don't know exactly what version you are using but in the classical windows verstion you have the bash provided from cygwin.

The new wingrass version can make use of msys, just read the README in http://geog-pc40.ulb.ac.be/grass/wingrass/README

Regards
Wolfgang

I've switched to using the mingw version -- msys comes with a command line "sh.exe", but I can't seem to a) boot grass using it, and b) and suspicious it won't be able to run bash scripting (sh is not the same as bash, correct?)

--j

WolfgangZ wrote:

Jonathan Greenberg schrieb:

Is there any way to access a bash window for the Windows mingw version of grass 6.3? What do I need to do? Thanks!

--j

I don't know exactly what version you are using but in the classical windows verstion you have the bash provided from cygwin.

The new wingrass version can make use of msys, just read the README in http://geog-pc40.ulb.ac.be/grass/wingrass/README

Regards
Wolfgang

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--

Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307

Jonathan Greenberg schrieb:

I've switched to using the mingw version -- msys comes with a command line "sh.exe", but I can't seem to a) boot grass using it, and b) and suspicious it won't be able to run bash scripting (sh is not the same as bash, correct?)

--j

can you please report in detail what software versions you use! grass, msys, mingw, ...

Otherwise it is really hard to figure out your problem.

Wolfgang

Jonathan,

please take a look at this mail:
http://lists.osgeo.org/pipermail/grass-windows/2008-February/001285.html

Markus

On Feb 17, 2008 9:07 PM, Jonathan Greenberg <greenberg@ucdavis.edu> wrote:

I've switched to using the mingw version -- msys comes with a command
line "sh.exe", but I can't seem to a) boot grass using it, and b) and
suspicious it won't be able to run bash scripting (sh is not the same as
bash, correct?)

--j

WolfgangZ wrote:
> Jonathan Greenberg schrieb:
>> Is there any way to access a bash window for the Windows mingw version
>> of grass 6.3? What do I need to do? Thanks!
>>
>> --j
>>
>>
> I don't know exactly what version you are using but in the classical
> windows verstion you have the bash provided from cygwin.
>
> The new wingrass version can make use of msys, just read the README in
> http://geog-pc40.ulb.ac.be/grass/wingrass/README
>
> Regards
> Wolfgang
>
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>

--

Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/

Jonathan Greenberg wrote:

I've switched to using the mingw version -- msys comes with a command
line "sh.exe", but I can't seem to a) boot grass using it,

One option is to try running the grass63.bat file rather than
grass63.sh. IIRC, the shell-based startup has some problems under
MSys.

Once you've started GRASS, you should be able to start the MSys shell
from the command prompt with e.g.:

  c:\msys\1.0\bin\sh

and b) and
suspicious it won't be able to run bash scripting (sh is not the same as
bash, correct?)

MSys' sh.exe is bash.

The r.tileset and i.spectral scripts use some bash-isms, and so start
with #!/bin/bash. These would need to be changed to use #!/bin/sh, but
should work in MSys.

--
Glynn Clements <glynn@gclements.plus.com>

On 18/02/08 01:40, Glynn Clements wrote:

Jonathan Greenberg wrote:

I've switched to using the mingw version -- msys comes with a command line "sh.exe", but I can't seem to a) boot grass using it,

One option is to try running the grass63.bat file rather than
grass63.sh. IIRC, the shell-based startup has some problems under
MSys.

I have successfully run the shell-based startup from the msys shell. I had to adapt path within the file (just did that for the wingrass package, so it should now run without any adaption). So, just open an msys terminal and type /c/grass63RC5/bin/grass63 and it should work. If not, please report, so that we can see why.

Moritz