We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Here is my function to run a linux bash script from processing sketch.
void OpenIt(String fileToOpen){
try {
Process p = new ProcessBuilder(fileToOpen, "").start();
}
catch(IOException ex) {
System.out.println(ex);
}
println("opening " + fileToOpen);
}
Just get your button or code event to launch the script like this:
OpenIt("/path/to/bashscript.sh");
Anyone else using Processing and bash together? I am going to be trying to get this to work on Android next, any tips?