Ticket #1692 (closed defect: fixed)
calling a script within a script failing on Windows XP
| Reported by: | hamish | Owned by: | martinl |
|---|---|---|---|
| Priority: | blocker | Milestone: | 6.4.3 |
| Component: | Shell Scripts | Version: | 6.4.2 |
| Keywords: | v.random.cover, wingrass, shell scripts | Cc: | grass-dev@… |
| Platform: | MSWindows XP | CPU: | x86-32 |
Description
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?
