Is there a way to make Java spawn a bash script on Windows? I have cygwin installed and I linked the .sh extension to cygwin bash. The following code that works on Linux does not work:
String[] cmdArray = { "scriptName.sh", "-force", categoryName}; Process proc = Runtime.getRuntime().exec(cmdArray, null, directory);
source share