[GRASS-user] Cannot change directory via GRASS command console

Helmut Kudrnovsky hellik at web.de
Sat Dec 14 14:53:48 PST 2013


> I have a bash script located in D:\Users\....\Sattelite_Processing (see my
earlier message) called 
> "myscript.sh" 

ah it's a shell script, so may you are mixing windows console
commands/syntax and *nix shell commands/syntax?

in windows console commands/syntax to change drive and folder:

e.g.

     C:\test\test>cd /D e:\

     e:\>

*nix shell commands/syntax (e.g. also emulated by msys in osgeo4w):

e.g.

     test at test-HP ~
     $ cd /e

     test at test-HP /e
     $

have a look for example in
C:\OSGeo4W\apps\grass\grass-6.4.4svn\bin\r.univar.sh.bat

   @"%GRASS_SH%" "%GISBASE%/scripts/r.univar.sh" %*

so in your myscript.sh you may use *nix shell commands/syntax and also
double quotes if the path has white space in it.

HTH



-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Cannot-change-directory-via-GRASS-command-console-tp5092923p5094270.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list