[GRASS-dev] winGRASS: running several python modules in bat-files fails

Anna Petrášová kratochanna at gmail.com
Wed Jun 14 05:49:37 PDT 2017


On Wed, Jun 14, 2017 at 8:39 AM, Helmut Kudrnovsky <hellik at web.de> wrote:
> hi,
>
> just playing around with with running several GRASS modules in windows
> bat-files.
>
> example
>
> test.bat with content:
>
> REM ----------
> @ECHO ON
> g.region -p
> v.in.region output=myreg2
> v.db.addtable map=myreg2
> v.db.addcolumn map=myreg2 columns="col1 inetger"

typo in 'inetger'?

how does it fail?

> REM ----------
>
> then copy the path to the bat-file into the winGRASS windows console, e.g.
>
> C:\>D:\wd\test.bat
>
> to run the bat file.
>
> g.region, v.in.region and v.db.addtable are working, but the second python
> module v.db.addcolumn fails.
>
> I've tested it in several combinations, all binary modules are starting,
> also the first python module, but never a second pthon module listed in the
> bat-file.
>
> any idea?
>
>
>
>
> -----
> best regards
> Helmut
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/winGRASS-running-several-python-modules-in-bat-files-fails-tp5324173.html
> Sent from the Grass - Dev mailing list archive at Nabble.com.
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list