[GRASS-dev] [GRASS GIS] #3418: "Launch Script (*.sh)" doesn't work on Windows

GRASS GIS trac at osgeo.org
Mon Sep 18 00:26:14 PDT 2017


#3418: "Launch Script (*.sh)" doesn't work on Windows
--------------------------+----------------------------------
  Reporter:  kking009     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.2.3
 Component:  Default      |    Version:  7.2.2
Resolution:               |   Keywords:  shell script windows
       CPU:  Unspecified  |   Platform:  MSWindows 7
--------------------------+----------------------------------

Comment (by hellik):

 Replying to [comment:2 kking009]:
 > On V6.X Grass-Shell-Script were working Cross-Platform! I suppose Grass
 were handling them and they weren't dispatched to the OS.
 > If I copy/execute line by line my script to the Grass-Comamnd-Console,
 Grass is able to "handle" my scripts.

 If you want simpy to execute some GRASS modules in a script, just put the
 module commands in a batch file in the following structure (I've added
 some notes in the wiki): e.g. myworkflow.bat

 Rem set region to a raster

 call g.region raster=yourraster

 Rem calculate slope

 call r.slope.aspect raste=yourraster slope=yourslope

 Etc

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3418#comment:4>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list