External tools on Windows 10 using bash

<oXygen/> general issues.
dwood2
Posts: 1

External tools on Windows 10 using bash

Tue Mar 07, 2017 10:42 pm

Hello everyone,

I'm currently using oXygen 18.1 on windows 10. I've installed the "Bash on Ubuntu on Windows" tool and I'm trying to make an external tool which runs bash scripts using this tool.

This is currently what I have for the external tool's command:
bash -c "sh ${cf}"
The working directory is ".", all of the other settings are default.

When I try to use this external tool on a bash script, I get the error code : 0x80070057.
However, the command works fine when run manually through the windows command prompt.

Thanks.
adrian
Posts: 2337

Re: External tools on Windows 10 using bash

Thu Mar 09, 2017 7:30 pm

Hi,

The "External tools" is not the same as a command prompt, you always have to specify an executable, as opposed to a command.
There may also be a problem with the PATH environment variable and that's why the bash executable is not found.
Try using /path/to/bash -c "sh ${cf}"

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests