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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -