Send grass-windows mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of grass-windows digest..."
Today's Topics:
1. Using Script files in GRASS6.4 (Ant?nio Rocha)
2. Re: Using Script files in GRASS6.4 (Ant?nio Rocha)
----------------------------------------------------------------------
Message: 1
Date: Fri, 20 Nov 2009 12:23:12 +0000
From: Ant?nio Rocha <[email protected]>
Subject: [GRASS-windows] Using Script files in GRASS6.4
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Greetings All
I'm reading GRASS book and I stopped at "9.2 Script programming". Since
i'm using Windows this is not as straightforward as it's in LINUX/UNIX
but...
I wrote a file with d.rast.region and put it in GRASS script folder.
Then, in GRASS6.4 using wxpython I put in the command line d.rast.region
and the error was "Execution failed: d.rast.region.exe". But there are
others scripts , e.g. i.tasscap, that can be run like that. Then, I
realized that in bin directory there is a i.tasscap.bat. That bat file
had the command to run msys sh and compile the bash file.
So, I decided to create a d.rast.region file in /bin/ with the following
command:
@"%GRASS_SH%" -c '"%GISBASE%/scripts/d.rast.region" %*'
But, unfortunately I got the same error message.
What am I doing wrong?
Note: I know I shouldn't have this script in script/ folder but...
Best regards,
Antonio Rocha
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4624 (20091120) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
------------------------------
Message: 2
Date: Fri, 20 Nov 2009 14:17:16 +0000
From: Ant?nio Rocha <[email protected]>
Subject: [GRASS-windows] Re: Using Script files in GRASS6.4
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Greetings Again
I thought that it wouldn't be necessary to compile/run make but... it
seems to be
make -C c:/grass6/tests/d.rast.region MODULE_TOPDIR=c:/grass6
after this, I got an error associated with windows_launch.bat I copied
to c:/grass6/scripts I got this:
make: Entering directory `/c/grass6/tests/d.rast.region'
c:/grass6/include/Make/Grass.make:418: warning: overriding commands for
target `/c/grass6/bin'
c:/grass6/include/Make/Grass.make:409: warning: ignoring old commands
for target `/c/grass6/bin'
make: Leaving directory `/c/grass6/tests/d.rast.region'
Ok... At /scripts/ a d.rast.region file was created and there is also a
d.rast.region.bat available at /bin but...
When I insert in command d.rast.region, a pop-up appears stating
"Command d.rast.region' not yet implemented .
Question: Any idea of what is not so good in what I just have done? :)
Cheers all
Antonio Rocha
António Rocha wrote:
> Greetings All
>
> I'm reading GRASS book and I stopped at "9.2 Script programming".
> Since i'm using Windows this is not as straightforward as it's in
> LINUX/UNIX but...
> I wrote a file with d.rast.region and put it in GRASS script folder.
> Then, in GRASS6.4 using wxpython I put in the command line
> d.rast.region and the error was "Execution failed: d.rast.region.exe".
> But there are others scripts , e.g. i.tasscap, that can be run like
> that. Then, I realized that in bin directory there is a i.tasscap.bat.
> That bat file had the command to run msys sh and compile the bash file.
> So, I decided to create a d.rast.region file in /bin/ with the
> following command:
> @"%GRASS_SH%" -c '"%GISBASE%/scripts/d.rast.region" %*'
>
> But, unfortunately I got the same error message.
> What am I doing wrong?
>
> Note: I know I shouldn't have this script in script/ folder but...
>
>
> Best regards,
> Antonio Rocha
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4624 (20091120) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4624 (20091120) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4624 (20091120) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
------------------------------
_______________________________________________
grass-windows mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-windows
End of grass-windows Digest, Vol 39, Issue 12
*********************************************