cygwin - How to spawn a bash script from Java on Windows? -
is there way make java spawn bash script on windows? have cygwin installed, , i've associated .sh file extension cygwin bash. following code, works on linux, isn't working:
string[] cmdarray = { "scriptname.sh", "-force", categoryname}; process proc = runtime.getruntime().exec(cmdarray, null, directory);
try adding either bash or start first parameter.
Comments
Post a Comment