[GRASS-dev] [GRASS GIS] #1692: calling a script within a script failing on Windows XP
GRASS GIS
trac at osgeo.org
Thu Jul 26 22:22:17 PDT 2012
#1692: calling a script within a script failing on Windows XP
---------------------------------------------------------------+------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.report, v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
---------------------------------------------------------------+------------
Hi,
We're trying to run v.random.cover(.sh) from grass6 addons on Windows XP
using the standard 6.4.2-2 prebuilt binaries. That script calls
v.report(.sh), but v.report fails. "g.parser has encountered a problem
and needs to close." and v.report exits with a non-zero error code.
turning debug to level 1 I see "ret = 1" from the G_spawn() command.
Running the exact same v.report command from the msys command line works
fine.
I'd note v.report sends data to both stderr and stdout, but that's all
after the g.parser call.
I seem to recall a problem long ago where in wingrass a script calling
another script didn't work.
Running `which v.report` from the msys command prompt shows `C:/Program
Files/GRASS 6.4.2/scripts`, not the wrapper .bat file in $GISBASE/bin/.
maybe it doesn't like $0 != what gets run on the second g.parser pass??
I'm not sure what to try to debug next.
thanks,
Hamish
ps- we were also unable to download any of the addons directly with the
gui extension tool, although the zip files seem ok on the server. Is it
working for anyone with those 6.4.2-2 binaries?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1692>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list