Page 1 of 1

External tools on Windows 10 using bash

Posted: Tue Mar 07, 2017 10:42 pm
by dwood2
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.

Re: External tools on Windows 10 using bash

Posted: Thu Mar 09, 2017 7:30 pm
by adrian
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