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)
   2. Re: Command line problems (Glynn Clements)


----------------------------------------------------------------------

Message: 1
Date: Tue, 18 May 2010 12:06:22 +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:
        <aanlktileai4eqbfligpfz8lwrzgk6in8kfta2j62v...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

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


Might my installation be incorrect? My system is somewhat strange in
that it is installed on F:, not C:. There is no C-drive, except when I
attach removable drives.


2010/5/17, Glynn Clements <gl...@gclements.plus.com>:
>
> Hanlie Pretorius wrote:
>
>> I'm using winGrass 6.4RC6 and having trouble with some of the commands
>> shown in help documentation and I suspect it's because I'm using
>> Windows and not *nix.
>>
>> For example, when I try to run a command such as:
>> eval `cat VTL2733.XYZ | r.in.xyz -s -g in=- fs=space out=test`
>>
>> I get the error:
>> 'eval' is not recognized as an internal or external command, operable
>> program or batch file'
>>
>> Can someone help me to fix this?
>
> The above command uses Bourne shell syntax. On Windows, you can use
> MSys, which may already be bundled with the GRASS installer (if not,
> you can get it via http://mingw.org/wiki/MSYS ). The shell is called
> "sh.exe".
>
>> If the answer is to install Cygwin,  is it possible to specify which part?
>
> Cygwin is overkill if you just need the shell.
>
> --
> Glynn Clements <gl...@gclements.plus.com>
>


------------------------------

Message: 2
Date: Tue, 18 May 2010 14:55:37 +0100
From: Glynn Clements <gl...@gclements.plus.com>
Subject: Re: [GRASS-windows] Command line problems
To: Hanlie Pretorius <hanlie.pretor...@gmail.com>
Cc: grass-windows@lists.osgeo.org
Message-ID: <19442.40025.141370.559...@cerise.gclements.plus.com>
Content-Type: text/plain; charset=us-ascii


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 4
********************************************

Reply via email to