Send grass-windows mailing list submissions to grass-windows@lists.osgeo.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-windows or, via email, send a message with subject or body 'help' to grass-windows-requ...@lists.osgeo.org You can reach the person managing the list at grass-windows-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of grass-windows digest..." Today's Topics: 1. Re: Command line problems (Hanlie Pretorius) ---------------------------------------------------------------------- Message: 1 Date: Wed, 19 May 2010 11:47:36 +0200 From: Hanlie Pretorius <hanlie.pretor...@gmail.com> Subject: Re: [GRASS-windows] Command line problems To: Glynn Clements <gl...@gclements.plus.com> Cc: grass-windows@lists.osgeo.org Message-ID: <aanlktim1yrhzrhqxbdzk1x1ptc0myco-jwhc8dypk...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 The batch file didn't work, got an error 'Windows cannot find f:\Program'. Wasn't sure what to do with the first line (set HOME=%HOMEDRIVE%%HOMEPATH%), so just used it as is in the batch file. I did get the GRASS with MSYS menu option to work by adding the paths to sh.exe and MinGW to my PATH environment variable and the eval 'cat r.in.xyz...' command works now. Thanks for the help. 2010/5/18, Glynn Clements <gl...@gclements.plus.com>: > > Hanlie Pretorius wrote: > >> I seem to have msys installed with my GRASS installation, but it doesn't >> work. >> >> When I try to run GRASS with MSYS from the menu, it can't find >> rxvt.exe or sh.exe. >> >> I found sh.exe in the msys\bin folder of my GRASS installation and I >> can run it from there, but I can't use it for anything. If I run the >> shell and enter: >> >> eval `cat VTL2733.XYZ | r.in.xyz -s -g in=- fs=space out=test` >> >> I get the error messages: >> >> cat: command not found >> r.in.xyz: command not found > > This is due to the PATH setting. > > If you start MSys via the msys.bat it will set PATH, but it will also > run in an rxvt Window, which is rather unreliable. > > I suggest creating a batch file, e.g.: > > set HOME=%HOMEDRIVE%%HOMEPATH% > set PATH=C:\msys\1.0\bin;C:\MinGW\bin;%PATH% > start C:\msys\1.0\bin\sh.exe > > Change the paths as appropriate for your system. > > That will start a shell in a command window. From there, you will need > to start GRASS before you can use any GRASS commands. > > -- > Glynn Clements <gl...@gclements.plus.com> > ------------------------------ _______________________________________________ grass-windows mailing list grass-windows@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-windows End of grass-windows Digest, Vol 45, Issue 5 ********************************************