[GRASS-windows] Re: Using Script files in GRASS6.4
António Rocha
antonio.rocha at deimos.com.pt
Fri Nov 20 09:17:16 EST 2009
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
More information about the grass-windows
mailing list