I want to run a shell script from my program below but it doesn\'t seem to do anything. I\'ve run the same command directly in the linux terminal and it works fine so I\'m g
Try this, it will work.
String[] cmd = new String[]{"/bin/sh", "path/to/script.sh"}; Process pr = Runtime.getRuntime().exec(cmd);